[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

[XaraXtreme-commits] Commit Complete



Commit by  : phil
Repository : xara
Revision   : 1227
Date       : Wed May 31 15:50:41 BST 2006

Changed paths:
   M /Trunk/XaraLX/Kernel/docview.cpp

Fixed problem with FindEnclosingSpread optimisation.


Diff:
Index: Trunk/XaraLX/Kernel/docview.cpp
===================================================================
--- Trunk/XaraLX/Kernel/docview.cpp	(revision 1226)
+++ Trunk/XaraLX/Kernel/docview.cpp	(revision 1227)
@@ -4208,7 +4208,7 @@
 	// Optimisation for simple documents:
 	// If only one chapter containing only one spread then that must be the
 	// enclosing spread!
-	if (pSpread && pSpread->FindNext()==NULL && pChapter->FindNext()==NULL)
+	if (pSpread && (pSpread->FindNext()==NULL || !pSpread->FindNext()->IsSpread()) && pChapter->FindNext()==NULL)
 		return pSpread;
 
 	// If the cursor was above the top of the document, then return the first spread


Xara