diff options
author | Jake Petroules <jake.petroules@qt.io> | 2016-07-05 11:52:59 -0700 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2016-08-04 19:55:14 +0000 |
commit | 47511046a404d223021b72aadd660e18faa2b90c (patch) | |
tree | 2b87cf11423718fc1ac193e479a394b6371c993e /examples | |
parent | 9c8a8e90a6514c23bcbeb14073a9d6bdd926d68b (diff) |
Fix rasterwindow example
At least with the eglfs platform plugin, the QBackingStore constructor
results in a null pointer access if done before creation.
Change-Id: I2e78e70700fa48499a35c55797e1b962b6e6285a
Reviewed-by: Rebecca Worledge <rebecca.worledge@theqtcompany.com>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gui/rasterwindow/rasterwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gui/rasterwindow/rasterwindow.cpp b/examples/gui/rasterwindow/rasterwindow.cpp index 96fe5297c8..f343ab6c30 100644 --- a/examples/gui/rasterwindow/rasterwindow.cpp +++ b/examples/gui/rasterwindow/rasterwindow.cpp @@ -45,8 +45,8 @@ RasterWindow::RasterWindow(QWindow *parent) : QWindow(parent) , m_update_pending(false) { - m_backingStore = new QBackingStore(this); create(); + m_backingStore = new QBackingStore(this); setGeometry(100, 100, 300, 200); |