diff options
| author | Neil Hodgson <nyamatongwe@gmail.com> | 2014-04-22 09:59:10 +1000 | 
|---|---|---|
| committer | Neil Hodgson <nyamatongwe@gmail.com> | 2014-04-22 09:59:10 +1000 | 
| commit | 237246527155276da68f0691c4d2ea5a2fef7497 (patch) | |
| tree | c23e60ac2214aa5d8dfee68bcfbf0cbaecbde995 /src/ContractionState.cxx | |
| parent | ef28e13fa65dd4eeb10fd71ac715174f49ab9add (diff) | |
| download | scintilla-mirror-237246527155276da68f0691c4d2ea5a2fef7497.tar.gz | |
Hoisting some calculations into classes: ContractionState::DisplayLastFromDoc
Range::First and Range::Last.
Changing Editor::RectangleFromRange arguments to a Range.
Simplifying code and specifying some local variables as const.
Diffstat (limited to 'src/ContractionState.cxx')
| -rw-r--r-- | src/ContractionState.cxx | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 0636d90ea..a5ecfe113 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -76,6 +76,10 @@ int ContractionState::DisplayFromDoc(int lineDoc) const {  	}  } +int ContractionState::DisplayLastFromDoc(int lineDoc) const { +	return DisplayFromDoc(lineDoc) + GetHeight(lineDoc) - 1; +} +  int ContractionState::DocFromDisplay(int lineDisplay) const {  	if (OneToOne()) {  		return lineDisplay; | 
