X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FXSDRAWIGES%2FXSDRAWIGES.cxx;h=ab174f753d1e918285407a1edacb9fcbdb7da590;hb=0ebe5b0a7f0b602336d03567cd0074beba4b04a6;hpb=39c8dc708fd076062eb762c47a4e8d2da4365eea diff --git a/src/XSDRAWIGES/XSDRAWIGES.cxx b/src/XSDRAWIGES/XSDRAWIGES.cxx index fdc0e829fa..ab174f753d 100644 --- a/src/XSDRAWIGES/XSDRAWIGES.cxx +++ b/src/XSDRAWIGES/XSDRAWIGES.cxx @@ -601,10 +601,12 @@ static Standard_Integer XSDRAWIGES_tplosttrim (Draw_Interpretor& di, Standard_In } TColStd_MapIteratorOfMapOfTransient itmap; + Standard_SStream aTmpStream; for(itmap.Initialize(aMap); itmap.More(); itmap.Next()) { - XSDRAW::Model()->Print (itmap.Key(), Message::DefaultMessenger()); - di << " "; + XSDRAW::Model()->Print (itmap.Key(), aTmpStream); + aTmpStream << " "; } + di << aTmpStream.str().c_str(); di << "\n"; di << "\nNumber:"<< nbFaces << "\n"; totFaces += nbFaces;