Commit 0c6bf764 authored by Thomas Schöps's avatar Thomas Schöps

ProblemHighlighter: Fix mark type handling

parent 9e836be2
Pipeline #3815 failed with stage
in 60 minutes
......@@ -119,8 +119,8 @@ void ProblemHighlighter::setProblems(const QVector<IProblem::Ptr>& problems)
if (markIface && hadProblems) {
// clear previously added marks
foreach (KTextEditor::Mark* mark, markIface->marks()) {
if (mark->type == errorMarkType || mark->type == warningMarkType) {
markIface->removeMark(mark->line, mark->type);
if (mark->type & (errorMarkType | warningMarkType)) {
markIface->removeMark(mark->line, errorMarkType | warningMarkType);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment