diff --git a/samples/CSharp/OCC/OCCViewer.cpp b/samples/CSharp/OCC/OCCViewer.cpp index ebb3a0fa7e..214695c880 100755 --- a/samples/CSharp/OCC/OCCViewer.cpp +++ b/samples/CSharp/OCC/OCCViewer.cpp @@ -302,7 +302,7 @@ void OCCViewer::EraseObjects(void) if (myAISContext.IsNull()) return; for(myAISContext->InitCurrent();myAISContext->MoreCurrent();myAISContext->NextCurrent()) - myAISContext->Erase(myAISContext->Current(),Standard_True,Standard_False); + myAISContext->Erase(myAISContext->Current(),Standard_True); myAISContext->ClearCurrents(); }