]> 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>
Wed, 16 Jul 2025 18:08:26 +0000 (19:08 +0100)
src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx

index 2527087beeebbb85190511dc4cb68eb7936c0f28..2be98f712a73c37b0e6368d49fdb23318d3ff007 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;