]> OCCT Git - occt.git/commitdiff
0032676: Draw Harness, ViewerTest - fix NULL dereference on vanim -remove
authorkgv <kgv@opencascade.com>
Sun, 21 Nov 2021 22:38:11 +0000 (01:38 +0300)
committersmoskvin <smoskvin@opencascade.com>
Mon, 22 Nov 2021 15:59:53 +0000 (18:59 +0300)
src/ViewerTest/ViewerTest_ViewerCommands.cxx

index 19f691e34bf55356d7b80aa4d2dbfccea3f905b3..5fb556b6bda45facdda432f90339a99b17917ee3 100644 (file)
@@ -7184,7 +7184,7 @@ static Standard_Integer VAnimation (Draw_Interpretor& theDI,
           || anArg == "-del"
           || anArg == "-delete")
     {
-      if (!aParentAnimation.IsNull())
+      if (aParentAnimation.IsNull())
       {
         ViewerTest_AnimationTimelineMap.UnBind (anAnimation->Name());
       }