From: vsr Date: Mon, 26 Apr 2010 12:09:15 +0000 (+0000) Subject: 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED... X-Git-Tag: V5_1_4rc1~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e13ecc881a13c1ee047642e75ed79568b232b094;p=modules%2Fsmesh.git 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file Additional fix for group labels actor color --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 99678ddf6..cd9e06919 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -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( myVisualObj.get() ) ) + if( aGroupObj->GetElementType() == SMDSAbs_0DElement ) + myNameActor->SetBackgroundColor(r,g,b); Modified(); }