From: vsr Date: Wed, 11 Mar 2020 15:30:40 +0000 (+0300) Subject: Correction for Localizer X-Git-Tag: V9_5_0a2~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c18a09fc7f1e3411000e02e45b1cdf10cfbc990;p=modules%2Fgui.git Correction for Localizer --- diff --git a/src/Qtx/Qtx.cxx b/src/Qtx/Qtx.cxx index b7a173f37..f5c5d8942 100644 --- a/src/Qtx/Qtx.cxx +++ b/src/Qtx/Qtx.cxx @@ -1763,7 +1763,7 @@ Qtx::Localizer::Localizer() } /*! - \brief Default constructor. Forces "C" locale to be set as LC_NUMERIC. + \brief Constructor. Forces \a locale to be set for \a category. */ Qtx::Localizer::Localizer( int category, const char* locale ) { @@ -1786,7 +1786,7 @@ void Qtx::Localizer::init( int category, const char* locale ) */ Qtx::Localizer::~Localizer() { - setlocale( LC_NUMERIC, myOriginalLocale.toLatin1().constData() ); + setlocale( myCategory, myOriginalLocale.toLatin1().constData() ); } /*!