This commit is contained in:
eap 2012-10-18 11:44:28 +00:00
parent e1fe8b5ce1
commit 5d017835af

View File

@ -610,16 +610,16 @@ namespace SMESH
SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SMESH::SObjectToObject( aSObj )); SMESH::SMESH_GroupBase_var aGroup = SMESH::SMESH_GroupBase::_narrow( SMESH::SObjectToObject( aSObj ));
if(!CORBA::is_nil(aGroup) && anActor) if(!CORBA::is_nil(aGroup) && anActor)
{ {
QColor c; QColor c;
int deltaF, deltaV; int deltaF, deltaV;
SMESH::GetColor( "SMESH", "fill_color", c, deltaF, "0,170,255|-100" ); SMESH::GetColor( "SMESH", "fill_color", c, deltaF, "0,170,255|-100" );
SMESH::GetColor( "SMESH", "volume_color", c, deltaV, "255,0,170|-100" ); SMESH::GetColor( "SMESH", "volume_color", c, deltaV, "255,0,170|-100" );
SMESH::GetColor( "SMESH", "default_grp_color", c ); SMESH::GetColor( "SMESH", "default_grp_color", c );
SALOMEDS::Color aColor = aGroup->GetColor(); SALOMEDS::Color aColor = aGroup->GetColor();
if( !( aColor.R > 0 || aColor.G > 0 || aColor.B > 0 )) if( !( aColor.R > 0 || aColor.G > 0 || aColor.B > 0 ))
{ {
aColor.R = c.redF(); aColor.R = c.redF();
aColor.G = c.greenF(); aColor.G = c.greenF();
aColor.B = c.blueF(); aColor.B = c.blueF();
aGroup->SetColor( aColor ); aGroup->SetColor( aColor );
} }