Commit dd4e1907 authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Set ZDepth before setAttribute for MovingRanges

parent 42fbc463
......@@ -1056,8 +1056,8 @@ public:
// highlight the range
if (enabled && ranges) {
KTextEditor::MovingRange *mr = miface->newMovingRange(range);
mr->setAttribute(attr);
mr->setZDepth(-90000.0); // Set the z-depth to slightly worse than the selection
mr->setAttribute(attr);
mr->setAttributeOnlyForViews(true);
ranges->insert(doc, mr);
}
......
......@@ -1533,8 +1533,8 @@ void KatePluginSearchView::addRangeAndMark(KTextEditor::Document *doc,
}
KTextEditor::MovingRange *mr = miface->newMovingRange(match.range);
mr->setAttribute(attr);
mr->setZDepth(-90000.0); // Set the z-depth to slightly worse than the selection
mr->setAttribute(attr);
mr->setAttributeOnlyForViews(true);
m_matchRanges.append(mr);
......
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