From: Kirill Gavrilov Date: Sat, 19 Apr 2025 07:09:10 +0000 (+0300) Subject: Draw, vcomputehlr - Misprint in command leading to error if no Viewer (#526) X-Git-Tag: V7_9_2~17 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=aa8aebebacf798b42ab2bbc5a102b8b6bdce8810;p=occt.git Draw, vcomputehlr - Misprint in command leading to error if no Viewer (#526) --- diff --git a/src/ViewerTest/ViewerTest_ObjectCommands.cxx b/src/ViewerTest/ViewerTest_ObjectCommands.cxx index 68cca8c87c..0272f5d1a0 100644 --- a/src/ViewerTest/ViewerTest_ObjectCommands.cxx +++ b/src/ViewerTest/ViewerTest_ObjectCommands.cxx @@ -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;