]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
INT PAL 0052373: TC7.4.0:Dump study failed
authormpa <mpa@opencascade.com>
Fri, 18 Apr 2014 11:16:35 +0000 (15:16 +0400)
committermpa <mpa@opencascade.com>
Fri, 18 Apr 2014 11:16:35 +0000 (15:16 +0400)
src/SALOMEDS/SALOMEDS_Driver_i.cxx

index a179db962e43e38410eb00eb55680b25d6cb7857..18bc5e7f19958ed1a127a36eeaf3aa7d92696aea 100644 (file)
@@ -27,6 +27,7 @@
 #include "SALOMEDS_SComponent_i.hxx"
 #include "SALOMEDS_Study_i.hxx"
 #include "SALOMEDS.hxx"
+#include <SALOMEDSImpl_IParameters.hxx>
 #include <stdlib.h>
 
 #include CORBA_CLIENT_HEADER(SALOME_Session)
@@ -357,6 +358,10 @@ SALOMEDS_DriverFactory_i::~SALOMEDS_DriverFactory_i()
 
 SALOMEDSImpl_Driver* SALOMEDS_DriverFactory_i::GetDriverByType(const std::string& theComponentType)
 {
+
+  if ( theComponentType == SALOMEDSImpl_IParameters::getDefaultVisualComponent() )
+    return NULL; // skip the "Interface Applicative" component
+
   SALOMEDSImpl_Driver* driver = 0;
 
   CORBA::Object_var obj = SALOME_LifeCycleCORBA(_name_service).FindOrLoad_Component("FactoryServer", theComponentType.c_str());