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

[XaraXtreme-commits] Commit Complete



Commit by  : alex
Repository : xara
Revision   : 865
Date       : Sat Apr 22 20:03:59 BST 2006

Changed paths:
   M /Trunk/XaraLX/wxOil/dlgmgr.cpp

Slightly improved dialog rendering fix


Diff:
Index: Trunk/XaraLX/wxOil/dlgmgr.cpp
===================================================================
--- Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 864)
+++ Trunk/XaraLX/wxOil/dlgmgr.cpp	(revision 865)
@@ -997,6 +997,7 @@
 				if (UseClipRect)
 				{
 					MyDc.SetClippingRegion(ClipRect);
+					ClipRect.Inflate(1,1); // work around wxRect problems.
 				}
 				else
 				{
@@ -1004,8 +1005,6 @@
 					Stop = TRUE; // cease drawing after this one
 				}
 				
-				ClipRect.Inflate(1,1);  // Inflate by one pixel to get around wxRect stupidity
-
 				DocRect DocClipRect;
 			
 				// Convert to millipoints, Also need to flip the y coords to get a


Xara