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.
This commit is contained in:
akl 2013-04-03 09:47:34 +00:00
parent 0f85ac62f7
commit 5601792b85
2 changed files with 4 additions and 0 deletions

View File

@ -65,6 +65,7 @@
#include <set>
#include <limits>
#include <Basics_Utils.hxx>
/*
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' );

View File

@ -67,6 +67,7 @@
// SALOME KERNEL includes
#include <SALOMEDSClient_Study.hxx>
#include <Basics_Utils.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 )
{
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. );