mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 21:40:33 +05:00
22359: Body Fitting algorithm: grid orientation
Fix a crash in the release mode + // Creation of this class disables vtkMatplotlibMathTextUtilities + struct MPLMathText_Disabler : protected vtkMatplotlibMathTextUtilities
This commit is contained in:
parent
5c9a9bf940
commit
74a891c6f3
@ -181,7 +181,23 @@
|
||||
// of auto-color picking up
|
||||
#define SIMPLE_AUTOCOLOR
|
||||
|
||||
//namespace{
|
||||
// REMOVE the code about MPLMathText_Disabler if it does not complite at porting to ParaView-4.1
|
||||
#include <vtkMatplotlibMathTextUtilities.h>
|
||||
namespace
|
||||
{
|
||||
// Creation of this class disables vtkMatplotlibMathTextUtilities
|
||||
struct MPLMathText_Disabler : protected vtkMatplotlibMathTextUtilities
|
||||
{
|
||||
MPLMathText_Disabler()
|
||||
{
|
||||
vtkMatplotlibMathTextUtilities::MPLMathTextAvailable =
|
||||
vtkMatplotlibMathTextUtilities::UNAVAILABLE;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
// Declarations
|
||||
//=============================================================
|
||||
void ImportMeshesFromFile(SMESH::SMESH_Gen_ptr theComponentMesh,
|
||||
@ -195,7 +211,6 @@
|
||||
|
||||
void Control( int theCommandID );
|
||||
|
||||
|
||||
// Definitions
|
||||
//=============================================================
|
||||
void ImportMeshesFromFile( SMESH::SMESH_Gen_ptr theComponentMesh,
|
||||
@ -1708,9 +1723,10 @@
|
||||
return RefType;
|
||||
}
|
||||
|
||||
} //namespace
|
||||
|
||||
void SMESHGUI::OnEditDelete()
|
||||
{
|
||||
void SMESHGUI::OnEditDelete()
|
||||
{
|
||||
// VSR 17/11/04: check if all objects selected belong to SMESH component --> start
|
||||
LightApp_SelectionMgr* aSel = SMESHGUI::selectionMgr();
|
||||
SALOME_ListIO selected; aSel->selectedObjects( selected, QString::null, false );
|
||||
@ -1880,8 +1896,7 @@
|
||||
aSel->setSelectedObjects( l1 );
|
||||
|
||||
SMESHGUI::GetSMESHGUI()->updateObjBrowser();
|
||||
}
|
||||
//} namespace
|
||||
}
|
||||
|
||||
extern "C" {
|
||||
SMESHGUI_EXPORT CAM_Module* createModule()
|
||||
@ -1939,6 +1954,8 @@ SalomeApp_Module( "SMESH" )
|
||||
|
||||
/* load resources for all available meshers */
|
||||
SMESH::InitAvailableHypotheses();
|
||||
|
||||
MPLMathText_Disabler d; // disable vtkMatplotlibMathTextUtilities
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user