From 6468f538ecf4930241952aef16768dea8fe09ca5 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 22 Mar 2010 15:15:49 +0000 Subject: [PATCH] Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file --- src/SMESHGUI/SMESHGUI.cxx | 2 ++ src/SMESHGUI/SMESHGUI_VTKUtils.cxx | 2 ++ 2 files changed, 4 insertions(+) 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 ); } -- 2.39.2