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

[XaraXtreme-commits] Commit Complete



Commit by  : phil
Repository : xara
Revision   : 1049
Date       : Mon May 15 13:01:43 BST 2006

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

When scanning NodeContourController children to find bounds for NodeContour, don't stop at the NodeContour because when it's the first in the list (outer contour) this will prevent the contoured object's bounds being found.
Fixes BZ947


Diff:
Index: Trunk/XaraLX/Kernel/nodecntr.cpp
===================================================================
--- Trunk/XaraLX/Kernel/nodecntr.cpp	(revision 1048)
+++ Trunk/XaraLX/Kernel/nodecntr.cpp	(revision 1049)
@@ -254,9 +254,9 @@
 
 	pNode = pNode->FindFirstChild();
 	
-	while (pNode && pNode != this)
+	while (pNode)
 	{
-		if (pNode->IsAnObject())
+		if (pNode->IsAnObject() && pNode!=this)
 		{
 			if (!IsBoundingRectValid)
 			{


Xara