Avoid failure of Create Mesh dialog in case of invalid plugin library

This commit is contained in:
eap 2021-12-24 17:53:03 +03:00
parent ce0e352599
commit 5c094a96e9

View File

@ -34,7 +34,8 @@
#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI_XmlHandler.h"
#include "SMESH_Actor.h"
#include <SMESH_Actor.h>
#include <SMESH_TryCatch.hxx>
// SALOME GUI includes
#include <SUIT_Desktop.h>
@ -628,10 +629,13 @@ namespace SMESH
HypothesisData* aHypData = GetHypothesisData(aHypType);
QString aServLib = aHypData->ServerLibName;
SMESH_TRY;
return SMESHGUI::GetSMESHGen()->IsApplicable( aHypType.toLatin1().data(),
aServLib.toUtf8().data(),
theGeomObject,
toCheckAll);
SMESH_CATCH( SMESH::printErrorInDebugMode );
return false;
}