From: vsr Date: Mon, 22 Mar 2010 15:15:49 +0000 (+0000) Subject: Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached... X-Git-Tag: V5_1_4a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6468f538ecf4930241952aef16768dea8fe09ca5;p=modules%2Fsmesh.git Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index bf3c50270..e8c832b83 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -690,6 +690,8 @@ anActor->SetNodeColor( aColor.R, aColor.G, aColor.B ); else if( aGroupObject->GetType() == SMESH::EDGE ) anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B ); + else if( aGroupObject->GetType() == SMESH::ELEM0D ) + anActor->Set0DColor( aColor.R, aColor.G, aColor.B ); else anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B ); } diff --git a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx index 7b5db1430..ba884ff79 100644 --- a/src/SMESHGUI/SMESHGUI_VTKUtils.cxx +++ b/src/SMESHGUI/SMESHGUI_VTKUtils.cxx @@ -594,6 +594,8 @@ namespace SMESH anActor->SetNodeColor( aColor.R, aColor.G, aColor.B ); else if( aGroup->GetType() == SMESH::EDGE ) anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B ); + else if( aGroup->GetType() == SMESH::ELEM0D ) + anActor->Set0DColor( aColor.R, aColor.G, aColor.B ); else anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B ); }