Commit 55d29bd3 authored by Thomas Lübking's avatar Thomas Lübking

invalidate iterator on removing pointed element

BUG: 342983
REVIEW: 122117
parent e552511d
......@@ -78,8 +78,10 @@ void HighlightWindowEffect::prePaintWindow(EffectWindow* w, WindowPrePaintData&
if (oldOpacity != *opacity)
effects->addRepaint(w->geometry().adjusted(-16,-16,16,32)); // ... see above ... because the window is pot. gone in the last pass
if (*opacity > 0.98f || *opacity < 0.02f)
if (*opacity > 0.98f || *opacity < 0.02f) {
m_windowOpacity.remove(w); // We default to 1.0
opacity = m_windowOpacity.end();
}
}
// Show tabbed windows and windows on other desktops if highlighted
......
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