]> git.tdb.fi Git - poefilter.git/blobdiff - source/category.cpp
Add support for the new visual indicators
[poefilter.git] / source / category.cpp
index fb12fec0ddfd25fa0dc14996b80e780af62507ae..0f6eb3f57e962ab0021b7b238aabff1a2470b571 100644 (file)
@@ -47,7 +47,15 @@ void Category::create_statements(list<FilterStatement> &st) const
                st.push_back(FilterStatement());
 
        if(condition)
-               condition->add_lines(st);
+       {
+               Condition *flat = condition->flatten();
+               if(flat)
+               {
+                       flat->add_lines(st);
+                       delete flat;
+               }
+               // TODO handle the case of the entire condition being non-viable
+       }
 }