From: Jaakko Salli Date: Mon, 20 Dec 2010 14:21:13 +0000 (+0000) Subject: Use locale-specific decimal point in wxNumericPropertyValidator (fixes #12790) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a2abe5f08113b25ce20c1710c7361d27a5cb12eb Use locale-specific decimal point in wxNumericPropertyValidator (fixes #12790) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/propgrid/props.cpp b/src/propgrid/props.cpp index f8357d4408..e399674bd5 100644 --- a/src/propgrid/props.cpp +++ b/src/propgrid/props.cpp @@ -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);