Salome HOME
Fix problems with compilation
[modules/visu.git] / src / VISUGUI / VisuGUI.cxx
index 63750e463a61c98b119323a668be9ad6d988cfca..b81bc47b24733565b87ae9818c755f51dd097dd9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
 #include "VISU_TableDlg.h"
 #include "VisuGUI_FileInfoDlg.h"
 
+#ifdef WITH_MEDGEN
 #include "SALOMEconfig.h"
 #include CORBA_SERVER_HEADER(MED_Gen)
+#endif // WITH_MEDGEN
 
 #include "utilities.h"
 
@@ -192,6 +194,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 +2624,8 @@ void
 VisuGUI
 ::initialize( CAM_Application* theApp )
 {
+  MatplotlibMathTextUtilities::Disable();
+
   SalomeApp_Module::initialize( theApp );
 
   mySlider = new VisuGUI_Slider( this, getApp()->desktop(), getApp()->selectionMgr() );