diff options
Diffstat (limited to 'src/ContractionState.cxx')
| -rw-r--r-- | src/ContractionState.cxx | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index f2cc2f07b..8a1b486e7 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -193,6 +193,23 @@ bool ContractionState::SetExpanded(int lineDoc, bool expanded_) {  	}  } +int ContractionState::ContractedNext(int lineDocStart) const { +	if (OneToOne()) { +		return -1; +	} else { +		Check(); +		if (!expanded->ValueAt(lineDocStart)) { +			return lineDocStart; +		} else { +			int lineDocNextChange = expanded->EndRun(lineDocStart); +			if (lineDocNextChange < LinesInDoc()) +				return lineDocNextChange; +			else +				return -1; +		} +	} +} +  int ContractionState::GetHeight(int lineDoc) const {  	if (OneToOne()) {  		return 1; | 
