]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Issue 0020536: EDF 1136 GUI: SIGSEGV for Python module if import process of GUI compo...
authorvsr <vsr@opencascade.com>
Mon, 19 Oct 2009 08:10:06 +0000 (08:10 +0000)
committervsr <vsr@opencascade.com>
Mon, 19 Oct 2009 08:10:06 +0000 (08:10 +0000)
src/SALOME_PYQT/SALOME_PYQT_GUI/SALOME_PYQT_Module.cxx
src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_ModuleLight.h

index 42e24296b5af8ab2bf05f1724e31939b16d85bee..80da8eb31a42d682843e1dbcd33d5da37f84aa0c 100644 (file)
@@ -157,8 +157,8 @@ void SALOME_PYQT_Module::getEngineIOR()
   if ( !myInterp || !myModule )
     return;
 
-  if ( PyObject_HasAttrString( myModule->get() , "engineIOR" ) ) {
-    PyObjWrapper res( PyObject_CallMethod( myModule->get(), (char*)"engineIOR", (char*)"" ) );
+  if ( PyObject_HasAttrString( myModule , "engineIOR" ) ) {
+    PyObjWrapper res( PyObject_CallMethod( myModule, (char*)"engineIOR", (char*)"" ) );
     if ( !res ) {
       PyErr_Print();
     }
index f9066c64075f2a158f42e0242bab4ffd3925a876..44c4a71e223e0c75e9afea7e0ac8ac1b38dab23e 100644 (file)
@@ -63,9 +63,9 @@ private:
   bool                       myLastActivateStatus; //!< latest module activation status
 
 protected:
-  PyObjWrapper*                   myModule;     //!< Python GUI module
-  PyInterp_Interp*                myInterp;     //!< current Python subinterpreter
-  static InterpMap                myInterpMap;  //!< study to Python subinterpreter map
+  PyObject*                  myModule;     //!< Python GUI module
+  PyInterp_Interp*           myInterp;     //!< current Python subinterpreter
+  static InterpMap           myInterpMap;  //!< study to Python subinterpreter map
 
 public:
   SALOME_PYQT_ModuleLight();