mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 10:50:34 +05:00
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:
parent
0f85ac62f7
commit
5601792b85
@ -65,6 +65,7 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include <limits>
|
#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;
|
TCollection_AsciiString aStr = theStr;
|
||||||
aStr.RemoveAll( ' ' );
|
aStr.RemoveAll( ' ' );
|
||||||
aStr.RemoveAll( '\t' );
|
aStr.RemoveAll( '\t' );
|
||||||
|
@ -67,6 +67,7 @@
|
|||||||
|
|
||||||
// SALOME KERNEL includes
|
// SALOME KERNEL includes
|
||||||
#include <SALOMEDSClient_Study.hxx>
|
#include <SALOMEDSClient_Study.hxx>
|
||||||
|
#include <Basics_Utils.hxx>
|
||||||
|
|
||||||
// OCCT includes
|
// OCCT includes
|
||||||
#include <StdSelect_TypeOfFace.hxx>
|
#include <StdSelect_TypeOfFace.hxx>
|
||||||
@ -1246,6 +1247,7 @@ void SMESHGUI_FilterTable::GetCriterion (const int theRow,
|
|||||||
QtxColorButton* clrBtn = qobject_cast<QtxColorButton*>(aTable->cellWidget(theRow, 2));
|
QtxColorButton* clrBtn = qobject_cast<QtxColorButton*>(aTable->cellWidget(theRow, 2));
|
||||||
if ( clrBtn )
|
if ( clrBtn )
|
||||||
{
|
{
|
||||||
|
Kernel_Utils::Localizer loc;
|
||||||
const QColor qClr = clrBtn->color();
|
const QColor qClr = clrBtn->color();
|
||||||
QString clrStr = QString( "%1;%2;%3" ).
|
QString clrStr = QString( "%1;%2;%3" ).
|
||||||
arg( qClr.red()/256. ).arg( qClr.green()/256. ).arg( qClr.blue()/256. );
|
arg( qClr.red()/256. ).arg( qClr.green()/256. ).arg( qClr.blue()/256. );
|
||||||
|
Loading…
Reference in New Issue
Block a user