[Mono-bugs] [Bug 63360][Wis] New - FillPie hangs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 18 Aug 2004 16:22:38 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by rkumar@novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=63360

--- shadow/63360	2004-08-18 16:22:38.000000000 -0400
+++ shadow/63360.tmp.26387	2004-08-18 16:22:38.000000000 -0400
@@ -0,0 +1,70 @@
+Bug#: 63360
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rkumar@novell.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FillPie hangs
+
+Description of Problem:
+Graphics.FillPie hangs for this particular case.
+
+Steps to reproduce the problem:
+1. Try compiling and running the following code,
+using System;
+using System.Drawing;
+                                                                          
+                                                   
+public class Test {
+                                                                          
+                                                           public static
+void Main () {
+
+                Pen bluePen = new Pen (Color.Blue);
+                Bitmap bmp = new Bitmap (400, 400);
+                                                                          
+                                                                   Graphics
+dc = Graphics.FromImage (bmp);
+
+                Rectangle rect = new Rectangle (200, 600, 249, 250);
+                dc.FillPie (Brushes.Green, rect, 380, -20);
+                                                                          
+                                                   
+/* This commented code works fine.
+                Rectangle rect1 = new Rectangle (200, 600, 249, 251);
+                dc.FillPie (Brushes.Green, rect1, 380, -20);
+                                                                          
+                                                   
+                Rectangle rect2 = new Rectangle (200, 600, 249, 250);
+                dc.DrawPie (bluePen, rect2, 380, -20);
+                                                                          
+                                                   */
+
+                bmp.Save("fillpie.png", ImageFormat.Png);
+        }
+                                                                          
+                                                   }
+
+Actual Results:
+Program hangs.
+
+Expected Results:
+Program should run fine and draw a partially filled pie.
+
+How often does this happen? 
+Always.
+
+Additional Information:
+When the difference between width and height of rectangle is 1 and angles
+sum is close to 360, then cairo_fill operation seems to be hanging. It
+might be a cairo problem.