Salome HOME
Various minor fixes
[plugins/xtplugin.git] / src / XTPlugin_ImportDriver.cxx
index 32f2febcc6d712a821e60df4ea7585735672eb12..4ff57d42e750e804bb4bd28bca12e6031837a971 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2014-2015  OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -56,6 +56,7 @@
 #include <XtTopoDS_Topology.hxx>
 
 #include <StdFail_NotDone.hxx>
+#include <Standard_Version.hxx>
 
 #ifdef XT_HASLICENSE
 #include "XTPlugin_license.h"
@@ -104,7 +105,7 @@ Standard_Integer XTPlugin_ImportDriver::Execute( TFunction_Logbook& log ) const
     OCCLicense_Activate( "XT-R-"OCC_VERSION_STRING, XT_READ_LICENSE);
   }
   catch (Standard_LicenseError) {
-    return aResShape;
+    return 0;
   }
 #endif // XT_HASLICENSE