[Mono-bugs] [Bug 78399][Min] Changed - [PATCH] PageSetupDialog incorrectly expects yard-pound units everywhere

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 31 19:46:56 EST 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 atsushi at ximian.com.

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

--- shadow/78399	2006-08-16 14:21:38.000000000 -0400
+++ shadow/78399.tmp.12263	2006-10-31 19:46:56.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 78399
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Minor
 Component: Windows.Forms
 AssignedTo: peter at novonyx.com                            
 ReportedBy: atsushi at ximian.com               
 QAContact: mono-bugs at ximian.com
@@ -30,6 +30,36 @@
 
 ------- Additional Comments From peter at novonyx.com  2006-08-14 18:09 -------
 Looks good. Please check in.
 
 ------- Additional Comments From atsushi at ximian.com  2006-08-16 14:21 -------
 ok, fixed in svn (r63831).
+
+------- Additional Comments From atsushi at ximian.com  2006-10-31 19:46 -------
+I have a totally cosmetic but better change:
+
+Index: System.Windows.Forms/PageSetupDialog.cs
+===================================================================
+--- System.Windows.Forms/PageSetupDialog.cs	(revision 67146)
++++ System.Windows.Forms/PageSetupDialog.cs	(working copy)
+@@ -430,15 +430,7 @@
+ 		}
+ 
+ 		static bool UseYardPound {
+-			get {
+-				switch (CultureInfo.CurrentUICulture.Name) {
+-				case "en-US":
+-				case "en-GB":
+-					return true;
+-				default:
+-					return false;
+-				}
+-			}
++			get { return !RegionInfo.CurrentRegion.IsMetric; }
+ 		}
+ 
+ 		// .Net uses PrinterSettings property if it is not null.
+
+
+----
+
+Not intended to be applied before 1.2 release.


More information about the mono-bugs mailing list