Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc96736
)
0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED...
author
vsr
<vsr@opencascade.com>
Mon, 26 Apr 2010 12:09:15 +0000
(12:09 +0000)
committer
vsr
<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
patch
|
blob
|
history
diff --git
a/src/OBJECT/SMESH_Actor.cxx
b/src/OBJECT/SMESH_Actor.cxx
index 99678ddf65d6ea18c17376f0532cf27a21763269..cd9e0691967992a98cc2b113fd863498a0c67211 100644
(file)
--- 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<SMESH_GroupObj*>( myVisualObj.get() ) )
+ if( aGroupObj->GetElementType() == SMDSAbs_0DElement )
+ myNameActor->SetBackgroundColor(r,g,b);
Modified();
}