]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
IPAL51799: TC7.2.0: Segmentation violation of creating presentation
authorinv <inv@opencascade.com>
Wed, 20 Mar 2013 13:40:09 +0000 (13:40 +0000)
committerinv <inv@opencascade.com>
Wed, 20 Mar 2013 13:40:09 +0000 (13:40 +0000)
IPAL51785: TC7.2.0: Post-Pro: Create Presentation exception

src/VISUGUI/Makefile.am
src/VISUGUI/VisuGUI.cxx

index 226fdb0fa495c71eb03f33895ac4bb401f442483..ddf6d53f81fec4a8c702099b42225aace66d3c05 100644 (file)
@@ -193,7 +193,7 @@ libVISU_la_LDFLAGS= \
        $(QWT_LIBS) \
        $(CAS_LDFLAGS) -lTKV3d \
        $(KERNEL_LDFLAGS) -lSalomeNS -lSalomeDSClient \
-       $(GUI_LDFLAGS) -lSVTK -lSPlot2d -lSalomePrs -lOCCViewer -lViewerTools -lvtkTools \
+       $(GUI_LDFLAGS) -lSVTK -lSPlot2d -lSalomePrs -lOCCViewer -lViewerTools -lvtkTools -lvtkRenderingMatplotlib${VTK_SUFFIX} \
        ../OBJECT/libVisuObject.la ../VISU_I/libVISUEngineImpl.la \
        ../../idl/libSalomeIDLVISU.la
 
index 63750e463a61c98b119323a668be9ad6d988cfca..8da288362a48d1360080f81bba4465c3e2dadb92 100644 (file)
@@ -192,6 +192,21 @@ static int MYDEBUG = 0;
 #define usleep(A) _sleep(A/1000)
 #endif
 
+#include <vtkMatplotlibMathTextUtilities.h>
+
+class MatplotlibMathTextUtilities : public vtkMatplotlibMathTextUtilities
+{
+public:
+  static void Disable()
+  {
+    vtkMatplotlibMathTextUtilities::MPLMathTextAvailable = vtkMatplotlibMathTextUtilities::UNAVAILABLE;
+  }
+
+private:
+  MatplotlibMathTextUtilities() {}
+  ~MatplotlibMathTextUtilities() {}
+};
+
 //////////////////////////////////////////////////
 // Class: VisuGUI
 //////////////////////////////////////////////////
@@ -2607,6 +2622,8 @@ void
 VisuGUI
 ::initialize( CAM_Application* theApp )
 {
+  MatplotlibMathTextUtilities::Disable();
+
   SalomeApp_Module::initialize( theApp );
 
   mySlider = new VisuGUI_Slider( this, getApp()->desktop(), getApp()->selectionMgr() );