From 5601792b855f6e3f3f6d6cb22a37fb69026b7345 Mon Sep 17 00:00:00 2001 From: akl Date: Wed, 3 Apr 2013 09:47:34 +0000 Subject: [PATCH] Fix of INT PAL 0022929: TC6.5.0: Filter 'Color of Group' dosn't work: set 'C' locale to operate with '.' (dot) as decimal point during converting from string to double. --- src/Controls/SMESH_Controls.cxx | 2 ++ src/SMESHGUI/SMESHGUI_FilterDlg.cxx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/Controls/SMESH_Controls.cxx b/src/Controls/SMESH_Controls.cxx index 83981ac61..fa7086164 100644 --- a/src/Controls/SMESH_Controls.cxx +++ b/src/Controls/SMESH_Controls.cxx @@ -65,6 +65,7 @@ #include #include +#include /* AUXILIARY METHODS @@ -2662,6 +2663,7 @@ void GroupColor::SetMesh( const SMDS_Mesh* theMesh ) void GroupColor::SetColorStr( const TCollection_AsciiString& theStr ) { + Kernel_Utils::Localizer loc; TCollection_AsciiString aStr = theStr; aStr.RemoveAll( ' ' ); aStr.RemoveAll( '\t' ); diff --git a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx index b345b9cc1..21c03aa24 100755 --- a/src/SMESHGUI/SMESHGUI_FilterDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_FilterDlg.cxx @@ -67,6 +67,7 @@ // SALOME KERNEL includes #include +#include // OCCT includes #include @@ -1246,6 +1247,7 @@ void SMESHGUI_FilterTable::GetCriterion (const int theRow, QtxColorButton* clrBtn = qobject_cast(aTable->cellWidget(theRow, 2)); if ( clrBtn ) { + Kernel_Utils::Localizer loc; const QColor qClr = clrBtn->color(); QString clrStr = QString( "%1;%2;%3" ). arg( qClr.red()/256. ).arg( qClr.green()/256. ).arg( qClr.blue()/256. ); -- 2.39.2