From 8b51dd6db1a246eb774a1da601e6913b184a9ab8 Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 10 Nov 2014 11:50:16 +0300 Subject: [PATCH] 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 --- src/FeaturesPlugin/FeaturesPlugin_Boolean.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- 2.39.2