Update cached values in wxNumberFormatter when locale changes.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Jan 2011 10:48:10 +0000 (10:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 19 Jan 2011 10:48:10 +0000 (10:48 +0000)
commit0d30c79b4450b5e5960d4f945b18c0a2287f7045
treefeb9f7bb786af72f7eeee145ef5188ae25eb817c
parentf2a5052baa9f3cf87a5198e445021b8a6a1be134
Update cached values in wxNumberFormatter when locale changes.

Caching the decimal and thousands separators in wxNumberFormatter is a useful
performance optimization, however it can give wrong results if the locale
changed since the cached values were initialized. So remember the locale used
for the initialization and redo it if it changed. This should still be almost
as fast as the previous version but now also correct (still not MT-safe
though).

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