Salome HOME
Preparation of intermediate revision
[modules/geom.git] / src / GEOMImpl / GEOMImpl_ImportDriver.cxx
index 4a309a0b67cbe59611416787defa8dd0edd980d7..0118c7514ade3fa74d5d5b46dea8b4a5208043a5 100644 (file)
@@ -53,7 +53,8 @@
 
 typedef TopoDS_Shape (*funcPoint)(const TCollection_AsciiString&,
                                   const TCollection_AsciiString&,
-                                  TCollection_AsciiString&);
+                                  TCollection_AsciiString&,
+                                 const TDF_Label&);
 
 //=======================================================================
 //function : GetID
@@ -100,14 +101,14 @@ Standard_Integer GEOMImpl_ImportDriver::Execute(TFunction_Logbook& log) const
     fp = (funcPoint)GetProc( anImportLib, "Import" );
 
   if ( !fp ) {
-    TCollection_AsciiString aMsg = aFormatName;
+    TCollection_AsciiString aMsg = aFormatName.SubString(1,4);
     aMsg += " plugin was not installed";
     Standard_Failure::Raise(aMsg.ToCString());
   }
 
   // perform the import
   TCollection_AsciiString anError;
-  TopoDS_Shape aShape = fp( aFileName, aFormatName, anError );
+  TopoDS_Shape aShape = fp( aFileName, aFormatName, anError, aFunction->GetEntry() );
 
   // unload plugin library
   // commented by enk: