1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0023157: Exception reading STEP file in Debug mode

Unsafe Debug printout was removed.
This commit is contained in:
szv 2012-05-15 14:38:08 +04:00
parent 67263fce53
commit 36f35343b8

View File

@ -761,9 +761,6 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors (const Handle(XSControl_WorkS
if ( style != aHSeqOfInvisStyle->Value( si ) ) if ( style != aHSeqOfInvisStyle->Value( si ) )
continue; continue;
// found that current style is invisible. // found that current style is invisible.
#ifdef DEB
cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << endl;
#endif
IsVisible = Standard_False; IsVisible = Standard_False;
break; break;
} }
@ -832,12 +829,8 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors (const Handle(XSControl_WorkS
if (isSkipSHUOstyle) if (isSkipSHUOstyle)
continue; // skip styled item which refer to SHUO continue; // skip styled item which refer to SHUO
if ( S.IsNull() ) { if ( S.IsNull() )
#ifdef DEB
cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is not mapped to shape" << endl;
#endif
continue; continue;
}
if ( ! SurfCol.IsNull() ) { if ( ! SurfCol.IsNull() ) {
Quantity_Color col; Quantity_Color col;