0031918: Application Framework - New binary format for fast reading part of OCAF...
[occt.git] / src / BinMXCAFDoc / BinMXCAFDoc.cxx
index b458ebe..3a2bac5 100644 (file)
@@ -51,9 +51,9 @@ void BinMXCAFDoc::AddDrivers(const Handle(BinMDF_ADriverTable)& theDriverTable,
     Handle(BinMNaming_NamedShapeDriver)::DownCast (aNSDriver);
   
   Handle(BinMXCAFDoc_LocationDriver) aLocationDriver = new BinMXCAFDoc_LocationDriver (theMsgDrv);
-  if( !aNamedShapeDriver.IsNull() )
+  if (!aNamedShapeDriver.IsNull())
   {
-    aLocationDriver->SetSharedLocations( &(aNamedShapeDriver->GetShapesLocations()) );
+    aLocationDriver->SetNSDriver (aNamedShapeDriver);
   }
   
   theDriverTable->AddDriver( aLocationDriver);