Author: jordi
Date: 2005-09-13 07:43:41 -0400 (Tue, 13 Sep 2005)
New Revision: 49963

Modified:
   trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
   trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs
Log:
2005-09-13 Jordi Mas i Hernandez <[EMAIL PROTECTED]>

        * TestGraphics.cs: resets graphics object status before every SetClip 
test



Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog        
2005-09-13 11:43:33 UTC (rev 49962)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing/ChangeLog        
2005-09-13 11:43:41 UTC (rev 49963)
@@ -1,3 +1,7 @@
+2005-09-13 Jordi Mas i Hernandez <[EMAIL PROTECTED]>
+
+       * TestGraphics.cs: resets graphics object status before every SetClip 
test
+
 2005-09-12 Gert Driesen <[EMAIL PROTECTED]>
 
        * TestImageConverter.cs: Re-enabled GetProperties test.

Modified: trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs
===================================================================
--- trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs  
2005-09-13 11:43:33 UTC (rev 49962)
+++ trunk/mcs/class/System.Drawing/Test/System.Drawing/TestGraphics.cs  
2005-09-13 11:43:41 UTC (rev 49963)
@@ -149,6 +149,7 @@
                        AssertEquals ("SetClip5", 220, rects[0].Height);
 
                        // RectangleF
+                       g = Graphics.FromImage (bmp);
                        g.SetClip (new RectangleF (50, 40, 210, 220));
                        rects = g.Clip.GetRegionScans (new Matrix ());
                        AssertEquals ("SetClip6", 1, rects.Length);
@@ -158,6 +159,7 @@
                        AssertEquals ("SetClip10", 220, rects[0].Height);
 
                        // Rectangle
+                       g = Graphics.FromImage (bmp);
                        g.SetClip (new Rectangle (50, 40, 210, 220));
                        rects = g.Clip.GetRegionScans (new Matrix ());
                        AssertEquals ("SetClip10", 1, rects.Length);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to