Salome HOME
Removing of presentations from view corrected.
authoradv <adv@opencascade.com>
Thu, 21 Nov 2013 13:41:30 +0000 (13:41 +0000)
committeradv <adv@opencascade.com>
Thu, 21 Nov 2013 13:41:30 +0000 (13:41 +0000)
src/HYDROGUI/HYDROGUI_Displayer.cxx

index 570ba30cf0fc184869308102cb7fd33951ebbdd0..045b7db3c5e904f43d05d5d7f27497ac51058f89 100644 (file)
@@ -108,6 +108,7 @@ void HYDROGUI_Displayer::Erase( const HYDROData_SequenceOfObjects& theObjs,
       if( HYDROGUI_Prs* aPrs = HYDROGUI_Tool::GetPresentation( anObj, anObjectList ) )
       {
         aViewPort->removeItem( aPrs );
+        anObjectList.removeAll( aPrs );
         delete aPrs;
       }
     }