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: V8_0_0_rc2~21 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=589960b20a32f7cbfcd5c0a17037315eedad5c4e;p=occt.git Draw, vcomputehlr - Misprint in command leading to error if no Viewer (#526) --- diff --git a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx b/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx index 2527087bee..2be98f712a 100644 --- a/src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx +++ b/src/Draw/TKViewerTest/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;