From: szv Date: Tue, 15 May 2012 10:38:08 +0000 (+0400) Subject: 0023157: Exception reading STEP file in Debug mode X-Git-Tag: V6_5_4_beta1~149 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=36f35343b83d4985b66945d22fab775d02768b4e;p=occt-copy.git 0023157: Exception reading STEP file in Debug mode Unsafe Debug printout was removed. --- diff --git a/src/STEPCAFControl/STEPCAFControl_Reader.cxx b/src/STEPCAFControl/STEPCAFControl_Reader.cxx index 48fd5e9e22..ab5752030b 100755 --- a/src/STEPCAFControl/STEPCAFControl_Reader.cxx +++ b/src/STEPCAFControl/STEPCAFControl_Reader.cxx @@ -761,9 +761,6 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors (const Handle(XSControl_WorkS if ( style != aHSeqOfInvisStyle->Value( si ) ) continue; // found that current style is invisible. -#ifdef DEB - cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << endl; -#endif IsVisible = Standard_False; break; } @@ -832,12 +829,8 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors (const Handle(XSControl_WorkS if (isSkipSHUOstyle) continue; // skip styled item which refer to SHUO - if ( S.IsNull() ) { -#ifdef DEB - cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is not mapped to shape" << endl; -#endif + if ( S.IsNull() ) continue; - } if ( ! SurfCol.IsNull() ) { Quantity_Color col;