diff --git a/src/XDEDRAW/XDEDRAW_Common.cxx b/src/XDEDRAW/XDEDRAW_Common.cxx index 613a2780ac..0e0961e2c0 100644 --- a/src/XDEDRAW/XDEDRAW_Common.cxx +++ b/src/XDEDRAW/XDEDRAW_Common.cxx @@ -192,10 +192,12 @@ static Standard_Integer ReadIges (Draw_Interpretor& di, Standard_Integer argc, c DeclareAndCast(IGESControl_Controller,ctl,XSDRAW::Controller()); if (ctl.IsNull()) XSDRAW::SetNorm("IGES"); + //get value of the Test Harness parameter "read.only.visible" Standard_Integer readOnlyVisible = Interface_Static::IVal("read.iges.onlyvisible"); IGESCAFControl_Reader reader ( XSDRAW::Session(),Standard_True); reader.SetReadVisible(readOnlyVisible); + if (argc == 4) { Standard_Boolean mode = Standard_True; for ( Standard_Integer i = 0; argv[3][i] ; i++ )