Skip to content

Commit

Permalink
Labels in custom contrast should have the right order, again (#5771)
Browse files Browse the repository at this point in the history
Use _labelsTemp in place of _labels, to be sure to have all labels.
  • Loading branch information
boutinb authored Jan 3, 2025
1 parent 78f447e commit c8710df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CommonData/column.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c8710df

Please sign in to comment.