From 589960b20a32f7cbfcd5c0a17037315eedad5c4e Mon Sep 17 00:00:00 2001 From: Kirill Gavrilov Date: Sat, 19 Apr 2025 10:09:10 +0300 Subject: [PATCH] Draw, vcomputehlr - Misprint in command leading to error if no Viewer (#526) --- src/Draw/TKViewerTest/ViewerTest/ViewerTest_ObjectCommands.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5