Skip to content

Commit

Permalink
Ensure that QBackingStore::flush() is not used across window hierarchies
Browse files Browse the repository at this point in the history
Change-Id: I0713d7499f32819db4263e36dff58812a9ac763c
Reviewed-by: Laszlo Agocs <[email protected]>
  • Loading branch information
torarnv authored and Tor Arne Vestbø committed Oct 6, 2016
1 parent 669add9 commit 7a7b745
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/painting/qbackingstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ void QBackingStore::flush(const QRegion &region, QWindow *win, const QPoint &off
}
#endif

Q_ASSERT(win == this->window() || this->window()->isAncestorOf(win, QWindow::ExcludeTransients));

d_ptr->platformBackingStore->flush(win, QHighDpi::toNativeLocalRegion(region, win),
QHighDpi::toNativeLocalPosition(offset, win));
}
Expand Down

0 comments on commit 7a7b745

Please sign in to comment.