From: mpv Date: Mon, 10 Nov 2014 08:50:16 +0000 (+0300) Subject: Issue #254: on error of Boolean operations produce error window and this error now... X-Git-Tag: V_0.5~11^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8b51dd6db1a246eb774a1da601e6913b184a9ab8;p=modules%2Fshaper.git Issue #254: on error of Boolean operations produce error window and this error now does no block the continuation and working properly later, when this problem is fixed --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp index e582019b4..de5cdbf22 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp @@ -83,6 +83,13 @@ void FeaturesPlugin_Boolean::execute() Events_Error::send(aFeatureError, this); return; } + // if result of Boolean operation is same as was before it means that Boolean operation has no sence + // and naming provides no result, so, generate an error in this case + if (anObject->isEqual(aFeature->shape())) { + std::string aFeatureError = "Boolean feature: operation was not performed"; + Events_Error::send(aFeatureError, this); + return; + } //LoadNamingDS LoadNamingDS(aFeature, aResultBody, anObject, aTool, aType);