From: mpv Date: Tue, 4 Jun 2019 12:15:47 +0000 (+0300) Subject: Debug of the "reversed" filters flag management. X-Git-Tag: VEDF2019Lot4~101^2~43 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d3772ac2c013338f795312c48b459c80542e14e;p=modules%2Fshaper.git Debug of the "reversed" filters flag management. --- diff --git a/src/FiltersPlugin/FiltersPlugin_Selection.cpp b/src/FiltersPlugin/FiltersPlugin_Selection.cpp index 025d30147..c89e909cc 100644 --- a/src/FiltersPlugin/FiltersPlugin_Selection.cpp +++ b/src/FiltersPlugin/FiltersPlugin_Selection.cpp @@ -56,13 +56,15 @@ std::list FiltersPlugin_Selection::filters() const void FiltersPlugin_Selection::setReversed(const std::string theFilterID, const bool theReversed) { - std::string anAttrID = kReverseAttrID + kFilterSeparator + theFilterID; + std::string anAttrID = theFilterID + kFilterSeparator + kReverseAttrID; std::shared_ptr aBool = boolean(anAttrID); + if (aBool.get()) + aBool->setValue(theReversed); } bool FiltersPlugin_Selection::isReversed(const std::string theFilterID) { - std::string anAttrID = kReverseAttrID + kFilterSeparator + theFilterID; + std::string anAttrID = theFilterID + kFilterSeparator + kReverseAttrID; std::shared_ptr aBool = boolean(anAttrID); return aBool->value(); }