diff options
author | Pino Toscano <pino@kde.org> | 2009-06-28 20:11:42 +0200 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2009-06-28 20:11:42 +0200 |
commit | e1e9ae2826eff1665d798b4b50b5c63e8282246b (patch) | |
tree | 5403b73dbafe8d7a82ca96a435079f28a61db000 /qt4 | |
parent | a98de97137cb343182bd03c443fc08ff4e0fd9a5 (diff) |
[Qt4 demo] do not crash when changing the zoom with no document
Diffstat (limited to 'qt4')
-rw-r--r-- | qt4/demos/pageview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt4/demos/pageview.cpp b/qt4/demos/pageview.cpp index 3c22ab44..d7749985 100644 --- a/qt4/demos/pageview.cpp +++ b/qt4/demos/pageview.cpp @@ -67,6 +67,9 @@ void PageView::pageChanged(int page) void PageView::slotZoomChanged(qreal value) { m_zoom = value; + if (!document()) { + return; + } reloadPage(); } |