From: inv Date: Wed, 20 Mar 2013 13:40:09 +0000 (+0000) Subject: IPAL51799: TC7.2.0: Segmentation violation of creating presentation X-Git-Tag: before_mergefrom_V6_main_01Apr13~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a26581e0670fe2d78fb39eac325edf67c1d7e05;p=modules%2Fvisu.git IPAL51799: TC7.2.0: Segmentation violation of creating presentation IPAL51785: TC7.2.0: Post-Pro: Create Presentation exception --- diff --git a/src/VISUGUI/Makefile.am b/src/VISUGUI/Makefile.am index 226fdb0f..ddf6d53f 100644 --- a/src/VISUGUI/Makefile.am +++ b/src/VISUGUI/Makefile.am @@ -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 diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 63750e46..8da28836 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -192,6 +192,21 @@ static int MYDEBUG = 0; #define usleep(A) _sleep(A/1000) #endif +#include + +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() );