Draw, vcomputehlr - Misprint in command leading to error if no Viewer (#526)

This commit is contained in:
Kirill Gavrilov
2025-04-19 10:09:10 +03:00
committed by dpasukhi
parent afdcc4734d
commit 589960b20a
@@ -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;