mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0026726: Draw Harness, ViewerTest - AIS_InteractiveContext::EraseSelected() lacks test case
Update draw command ViewerTest::Erase().
This commit is contained in:
@@ -2776,6 +2776,7 @@ int VErase (Draw_Interpretor& theDI,
|
||||
else if (!toEraseAll && aCtx->NbSelected() > 0)
|
||||
{
|
||||
// Erase selected objects
|
||||
const Standard_Boolean aHasOpenedContext = aCtx->HasOpenedContext();
|
||||
for (ViewerTest_DoubleMapIteratorOfDoubleMapOfInteractiveAndName anIter (GetMapOfAIS());
|
||||
anIter.More(); anIter.Next())
|
||||
{
|
||||
@@ -2788,12 +2789,17 @@ int VErase (Draw_Interpretor& theDI,
|
||||
{
|
||||
aCtx->SetViewAffinity (anIO, aView, Standard_False);
|
||||
}
|
||||
else
|
||||
else if (aHasOpenedContext)
|
||||
{
|
||||
aCtx->Erase (anIO, Standard_False);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!toEraseInView)
|
||||
{
|
||||
aCtx->EraseSelected (Standard_False);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user