[escher] Fix transparent view: absolute origin can be undefined

(because superviews have not been filled yet). Rather use m_frame.
This commit is contained in:
Émilie Feral
2018-05-15 18:27:47 +02:00
committed by Ecco
parent 16bfca6a7d
commit dcf1e7d8a2

View File

@@ -2,7 +2,7 @@
void TransparentView::markRectAsDirty(KDRect rect) {
if (m_superview) {
m_superview->markRectAsDirty(KDRect(m_superview->pointFromPointInView(this, rect.origin()), rect.size()));
m_superview->markRectAsDirty(KDRect(rect.translatedBy(m_frame.origin())));
}
View::markRectAsDirty(rect);
}