[Mono-bugs] [Bug 79643][Nor] Changed - GdipMeasureString returns wrong width when called with int.MaxValue as maxwidth
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Oct 11 23:15:06 EDT 2006
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 sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=79643
--- shadow/79643 2006-10-11 11:23:55.000000000 -0400
+++ shadow/79643.tmp.15761 2006-10-11 23:15:05.000000000 -0400
@@ -1,13 +1,13 @@
Bug#: 79643
Product: Mono: Class Libraries
Version: 1.1
OS: SUSE 9.2
OS Details: Suse 10.1
-Status: NEW
-Resolution:
+Status: RESOLVED
+Resolution: FIXED
Severity: Unknown
Priority: Normal
Component: libgdiplus
AssignedTo: sebastien at ximian.com
ReportedBy: rolfkvinge at ya.com
QAContact: mono-bugs at ximian.com
@@ -33,6 +33,17 @@
Always
------- Additional Comments From rolfkvinge at ya.com 2006-10-11 06:59 -------
Created an attachment (id=17831)
Test case
+
+------- Additional Comments From sebastien at ximian.com 2006-10-11 23:15 -------
+This was due to convertions from int32 to float (inside
+System.Drawing, no choice to satisfy both SD and GDI+ API) then from
+float to int32 (in libgdiplus). The later can overflow the integer
+(e.g. Int32.MaxValue) and result in a negative value (messing with
+measurements).
+
+Fixed in SVN r66589.
+Existing unit tests adapted to check this in r66591.
+
More information about the mono-bugs
mailing list