From 7d3772ac2c013338f795312c48b459c80542e14e Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 4 Jun 2019 15:15:47 +0300 Subject: [PATCH] Debug of the "reversed" filters flag management. --- src/FiltersPlugin/FiltersPlugin_Selection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); } -- 2.39.2