From aa8aebebacf798b42ab2bbc5a102b8b6bdce8810 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/ViewerTest/ViewerTest_ObjectCommands.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5