diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-05-24 16:20:42 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-31 10:55:53 +0200 |
commit | 51cc60565334ee09d7d9c1f10c709c9accf230d8 (patch) | |
tree | 868afb7e68fd9cd4a6dee8df69d79fdbbbb7902d /lib/backing_store_qt.cpp | |
parent | 2b8371ef007cfa2c580921ccfb896cb1e594814e (diff) |
Make sure that newly created BackingStores respect the size of the view.
Diffstat (limited to 'lib/backing_store_qt.cpp')
-rw-r--r-- | lib/backing_store_qt.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/backing_store_qt.cpp b/lib/backing_store_qt.cpp index b22f25671..e5cc72016 100644 --- a/lib/backing_store_qt.cpp +++ b/lib/backing_store_qt.cpp @@ -26,9 +26,10 @@ BackingStoreQt::~BackingStoreQt() void BackingStoreQt::resize(const QSize& size) { m_isValid = false; - if (size != m_pixelBuffer.size()) - m_pixelBuffer = QPixmap(size); - m_host->WasResized(); + if (size != m_pixelBuffer.size()) { + m_pixelBuffer = QPixmap(size); + m_host->WasResized(); + } } void BackingStoreQt::paintToTarget(QPainter* painter, const QRect& rect) |