]> OCCT Git - occt.git/commitdiff
Draw, vcomputehlr - Misprint in command leading to error if no Viewer (#526)
authorKirill Gavrilov <kirill@sview.ru>
Sat, 19 Apr 2025 07:09:10 +0000 (10:09 +0300)
committerdpasukhi <dpasukhi@opencascade.com>
Sat, 6 Sep 2025 20:18:29 +0000 (21:18 +0100)
src/ViewerTest/ViewerTest_ObjectCommands.cxx

index 68cca8c87c558307201523ae853976f916f402ca..0272f5d1a014b9caf65d56d09db3c4772f205525 100644 (file)
@@ -3212,7 +3212,8 @@ static int VComputeHLR(Draw_Interpretor&, Standard_Integer theArgNb, const char*
     }
   }
 
-  if (aHlrName.IsEmpty() || aSh.IsNull() || (ViewerTest::GetAISContext().IsNull() && hasViewDirArg))
+  if (aHlrName.IsEmpty() || aSh.IsNull()
+      || (ViewerTest::GetAISContext().IsNull() && !hasViewDirArg))
   {
     Message::SendFail("Syntax error: wrong number of arguments");
     return 1;