From 2a26581e0670fe2d78fb39eac325edf67c1d7e05 Mon Sep 17 00:00:00 2001 From: inv Date: Wed, 20 Mar 2013 13:40:09 +0000 Subject: [PATCH] IPAL51799: TC7.2.0: Segmentation violation of creating presentation IPAL51785: TC7.2.0: Post-Pro: Create Presentation exception --- src/VISUGUI/Makefile.am | 2 +- src/VISUGUI/VisuGUI.cxx | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) 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() ); -- 2.39.2