0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file

Additional fix for group labels actor color
This commit is contained in:
vsr 2010-04-26 12:09:15 +00:00
parent cc96736255
commit e13ecc881a

View File

@ -1677,6 +1677,9 @@ void SMESH_ActorDef::GetNodeColor(vtkFloatingPointType& r,vtkFloatingPointType&
void SMESH_ActorDef::Set0DColor(vtkFloatingPointType r,vtkFloatingPointType g,vtkFloatingPointType b){
my0DProp->SetColor(r,g,b);
if( SMESH_GroupObj* aGroupObj = dynamic_cast<SMESH_GroupObj*>( myVisualObj.get() ) )
if( aGroupObj->GetElementType() == SMDSAbs_0DElement )
myNameActor->SetBackgroundColor(r,g,b);
Modified();
}