]> git.saurik.com Git - wxWidgets.git/commit
Fix bug in wxNumberFormatter::ToString() for negative numbers.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 29 Jul 2012 22:08:37 +0000 (22:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 29 Jul 2012 22:08:37 +0000 (22:08 +0000)
commita05cbc20e3481f38761f6a4abb8d359d92c94b3b
tree8724063a9aa06fb5fa6605930c52be73468995b4
parent42a4299bb35c18dfce9478221ab0af3b7e2e5360
Fix bug in wxNumberFormatter::ToString() for negative numbers.

Don't include the possible leading sign in the span of digits to be grouped as
this gave nonsensical strings such as "-,123" when adding thousands separators
to "123".

Closes #14526.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/numformatter.cpp
tests/strings/numformatter.cpp