Issue 0020788: EDF 1339 SMESH : Crash after enabling "Auto Color" feature in attached MED file

This commit is contained in:
vsr 2010-03-22 15:15:49 +00:00
parent e9aead38a5
commit 6468f538ec
2 changed files with 4 additions and 0 deletions

View File

@ -690,6 +690,8 @@
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B ); anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
else if( aGroupObject->GetType() == SMESH::EDGE ) else if( aGroupObject->GetType() == SMESH::EDGE )
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B ); anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
else if( aGroupObject->GetType() == SMESH::ELEM0D )
anActor->Set0DColor( aColor.R, aColor.G, aColor.B );
else else
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B ); anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
} }

View File

@ -594,6 +594,8 @@ namespace SMESH
anActor->SetNodeColor( aColor.R, aColor.G, aColor.B ); anActor->SetNodeColor( aColor.R, aColor.G, aColor.B );
else if( aGroup->GetType() == SMESH::EDGE ) else if( aGroup->GetType() == SMESH::EDGE )
anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B ); anActor->SetEdgeColor( aColor.R, aColor.G, aColor.B );
else if( aGroup->GetType() == SMESH::ELEM0D )
anActor->Set0DColor( aColor.R, aColor.G, aColor.B );
else else
anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B ); anActor->SetSufaceColor( aColor.R, aColor.G, aColor.B );
} }