diff --git a/CommonData/column.cpp b/CommonData/column.cpp index 201876b6cd..7c6b59eb4c 100644 --- a/CommonData/column.cpp +++ b/CommonData/column.cpp @@ -987,9 +987,9 @@ stringvec Column::nonFilteredLevels() } // Use the right label order - for (Label* label : _labels) - if (levels.find(label->label()) != levels.end()) - _nonFilteredLevels.push_back(label->label()); + for (std::string& label : _labelsTemp) + if (levels.find(label) != levels.end()) + _nonFilteredLevels.push_back(label); } return _nonFilteredLevels;