Salome HOME
Fix of INT PAL 0022929: TC6.5.0: Filter 'Color of Group' dosn't work:
authorakl <akl@opencascade.com>
Wed, 3 Apr 2013 09:47:34 +0000 (09:47 +0000)
committerakl <akl@opencascade.com>
Wed, 3 Apr 2013 09:47:34 +0000 (09:47 +0000)
set 'C' locale to operate with '.' (dot) as decimal point during converting from string to double.

src/Controls/SMESH_Controls.cxx
src/SMESHGUI/SMESHGUI_FilterDlg.cxx

index 83981ac6195712c469b38fe7801c6f0af8076253..fa70861643ae1c33a859f1e342589d6212af79e5 100644 (file)
@@ -65,6 +65,7 @@
 #include <set>
 #include <limits>
 
 #include <set>
 #include <limits>
 
+#include <Basics_Utils.hxx>
 
 /*
                             AUXILIARY METHODS
 
 /*
                             AUXILIARY METHODS
@@ -2662,6 +2663,7 @@ void GroupColor::SetMesh( const SMDS_Mesh* theMesh )
 
 void GroupColor::SetColorStr( const TCollection_AsciiString& theStr )
 {
 
 void GroupColor::SetColorStr( const TCollection_AsciiString& theStr )
 {
+  Kernel_Utils::Localizer loc;
   TCollection_AsciiString aStr = theStr;
   aStr.RemoveAll( ' ' );
   aStr.RemoveAll( '\t' );
   TCollection_AsciiString aStr = theStr;
   aStr.RemoveAll( ' ' );
   aStr.RemoveAll( '\t' );
index b345b9cc12e25059cfd7c251428242717c752a83..21c03aa24f278170db6d02bfca6676a90ff5b65e 100755 (executable)
@@ -67,6 +67,7 @@
 
 // SALOME KERNEL includes
 #include <SALOMEDSClient_Study.hxx>
 
 // SALOME KERNEL includes
 #include <SALOMEDSClient_Study.hxx>
+#include <Basics_Utils.hxx>
 
 // OCCT includes
 #include <StdSelect_TypeOfFace.hxx>
 
 // OCCT includes
 #include <StdSelect_TypeOfFace.hxx>
@@ -1246,6 +1247,7 @@ void SMESHGUI_FilterTable::GetCriterion (const int                 theRow,
     QtxColorButton* clrBtn = qobject_cast<QtxColorButton*>(aTable->cellWidget(theRow, 2));
     if ( clrBtn )
     {
     QtxColorButton* clrBtn = qobject_cast<QtxColorButton*>(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. );
       const QColor qClr = clrBtn->color();
       QString clrStr = QString( "%1;%2;%3" ).
         arg( qClr.red()/256. ).arg( qClr.green()/256. ).arg( qClr.blue()/256. );