0026628: Button Erase (Delete where erase algorythm is used) works incorrect
[occt.git] / samples / CSharp / OCCTProxy / OCCTProxy.cpp
index 9f0d074..222ffbd 100644 (file)
@@ -579,10 +579,8 @@ public:
     {
       return;
     }
-    for(myAISContext()->InitCurrent();myAISContext()->MoreCurrent();myAISContext()->NextCurrent())
-    {
-        myAISContext()->Erase(myAISContext()->Current(),Standard_True);
-    }
+
+    myAISContext()->EraseSelected (Standard_True);
     myAISContext()->ClearCurrents();
   }