Diff of /src/ContractionState.cxx [03acc5] .. [cc4cd0] Maximize Restore

  Switch to side-by-side view

--- a/src/ContractionState.cxx
+++ b/src/ContractionState.cxx
@@ -66,7 +66,7 @@
 
 int ContractionState::DisplayFromDoc(int lineDoc) const {
 	if (OneToOne()) {
-		return lineDoc;
+		return (lineDoc <= linesInDocument) ? lineDoc : linesInDocument;
 	} else {
 		if (lineDoc > displayLines->Partitions())
 			lineDoc = displayLines->Partitions();