From: mpv Date: Tue, 30 Jul 2019 11:51:08 +0000 (+0300) Subject: Fix for the issue #2974 : inverse flag is not restored in the filters selection feature X-Git-Tag: VEDF2019Lot4~74 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=374571a8ef94165ed3870cad693f5a38b4430040;p=modules%2Fshaper.git Fix for the issue #2974 : inverse flag is not restored in the filters selection feature --- diff --git a/src/FiltersPlugin/FiltersPlugin_Selection.cpp b/src/FiltersPlugin/FiltersPlugin_Selection.cpp index fde5dda29..7fe056aba 100644 --- a/src/FiltersPlugin/FiltersPlugin_Selection.cpp +++ b/src/FiltersPlugin/FiltersPlugin_Selection.cpp @@ -123,7 +123,8 @@ void FiltersPlugin_Selection::initAttributes() std::shared_ptr aBool = std::dynamic_pointer_cast(data()->addFloatingAttribute( kReverseAttrID, ModelAPI_AttributeBoolean::typeId(), *aFIt)); - aBool->setValue(false); // not reversed by default + if (!aBool->isInitialized()) + aBool->setValue(false); // not reversed by default ModelAPI_FiltersArgs anArgs; anArgs.setFeature(std::dynamic_pointer_cast(data()->owner())); anArgs.setFilter(*aFIt);