]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED...
authorvsr <vsr@opencascade.com>
Mon, 26 Apr 2010 12:09:15 +0000 (12:09 +0000)
committervsr <vsr@opencascade.com>
Mon, 26 Apr 2010 12:09:15 +0000 (12:09 +0000)
Additional fix for group labels actor color

src/OBJECT/SMESH_Actor.cxx

index 99678ddf65d6ea18c17376f0532cf27a21763269..cd9e0691967992a98cc2b113fd863498a0c67211 100644 (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();
 }