0027349: XtControl_Reader is not thread-safe
[occt.git] / src / XSControl / XSControl_Writer.cxx
index 300c317..e96bd09 100644 (file)
@@ -68,7 +68,7 @@ XSControl_Writer::XSControl_Writer ()
     IFSelect_ReturnStatus  XSControl_Writer::TransferShape
   (const TopoDS_Shape& sh, const Standard_Integer mode)
 {
-  thesession->SetModeWriteShape (mode);
+  thesession->TransferWriter()->SetTransferMode (mode);
   return thesession->TransferWriteShape (sh);
 }