[Mono-bugs] [Bug 79643][Wis] New - MeasureString 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 06:58:36 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 rolfkvinge at ya.com.

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

--- shadow/79643	2006-10-11 06:58:36.000000000 -0400
+++ shadow/79643.tmp.31473	2006-10-11 06:58:36.000000000 -0400
@@ -0,0 +1,33 @@
+Bug#: 79643
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details: Suse 10.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Drawing.
+AssignedTo: peter at novonyx.com                            
+ReportedBy: rolfkvinge at ya.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: MeasureString returns wrong width when called with int.MaxValue as maxwidth
+
+Description of Problem:
+MeasureString does not return correct width when max width = int.MaxValue
+
+Steps to reproduce the problem:
+1. Compile the attached code and run on Linux
+2. The height of the string 'A very long string...' is bigger than the 
+width.
+3. Change int.MaxValue to something else, compile and run again and the 
+width is correct.
+
+Expected Results:
+Same result in both cases.
+
+How often does this happen? 
+Always


More information about the mono-bugs mailing list