mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
0024246: Draw command stepread given whithout arguments throws an exception
To stepread command added check for the number of arguments. Minor correction (return 1 to indicate error)
This commit is contained in:
parent
a55f92813e
commit
f933f9cf88
@ -98,6 +98,10 @@ void XSDRAWSTEP::Init ()
|
||||
|
||||
static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_Integer argc, const char** argv)
|
||||
{
|
||||
if (argc < 3) {
|
||||
di << "Use: stepread [file] [f or r (type of model full or reduced)]\n";
|
||||
return 1;
|
||||
}
|
||||
// On admet le controller AP214 ou une variante
|
||||
DeclareAndCast(STEPControl_Controller,ctl,XSDRAW::Controller());
|
||||
if (ctl.IsNull()) XSDRAW::SetNorm("STEP");
|
||||
|
Loading…
x
Reference in New Issue
Block a user