From: ouv Date: Mon, 29 Mar 2010 08:24:47 +0000 (+0000) Subject: Bug IPAL21655 - Points representation works incorrectly with white background X-Git-Tag: V5_1_4a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fa7f73d6bd2132157efeb7392393e9d36080760e;p=modules%2Fsmesh.git Bug IPAL21655 - Points representation works incorrectly with white background --- diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index cef45817b..e27fe9abc 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -881,8 +881,6 @@ SetControlMode(eControl theMode, void SMESH_ActorDef::AddToRender(vtkRenderer* theRenderer){ - SALOME_Actor::AddToRender(theRenderer); - theRenderer->AddActor(myNodeActor); theRenderer->AddActor(myBaseActor); @@ -907,6 +905,10 @@ void SMESH_ActorDef::AddToRender(vtkRenderer* theRenderer){ theRenderer->AddActor2D(myPointLabels); theRenderer->AddActor2D(myCellsLabels); + + // the superclass' method should be called at the end + // (in particular, for correct work of selection) + SALOME_Actor::AddToRender(theRenderer); } void SMESH_ActorDef::RemoveFromRender(vtkRenderer* theRenderer){