From 1c18a09fc7f1e3411000e02e45b1cdf10cfbc990 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 11 Mar 2020 18:30:40 +0300 Subject: [PATCH] Correction for Localizer --- src/Qtx/Qtx.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() ); } /*! -- 2.39.2