From e13ecc881a13c1ee047642e75ed79568b232b094 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 26 Apr 2010 12:09:15 +0000 Subject: [PATCH] 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file Additional fix for group labels actor color --- src/OBJECT/SMESH_Actor.cxx | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- 2.39.2