]> git.saurik.com Git - wxWidgets.git/commitdiff
Use locale-specific decimal point in wxNumericPropertyValidator (fixes #12790)
authorJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 20 Dec 2010 14:21:13 +0000 (14:21 +0000)
committerJaakko Salli <jaakko.salli@dnainternet.net>
Mon, 20 Dec 2010 14:21:13 +0000 (14:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/propgrid/props.cpp

index f8357d44080a76d27d6f79bc157ae486623f1625..e399674bd500ee61015d33113200fb4577ddae91 100644 (file)
@@ -186,8 +186,10 @@ wxNumericPropertyValidator::
     {
         arr.Add(wxS("+"));
         arr.Add(wxS("-"));
-        arr.Add(wxS("."));
         arr.Add(wxS("e"));
+
+        // Use locale-specific decimal point
+        arr.Add(wxString::Format("%g", 1.1)[1]);
     }
 
     SetIncludes(arr);