mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-09-04 19:57:55 +08:00
Draw, vcomputehlr - Misprint in command leading to error if no Viewer (#526)
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user