[poppler] qt4/demos

Pino Toscano pino at kemper.freedesktop.org
Sun Jun 28 12:32:31 PDT 2009


 qt4/demos/pageview.cpp |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit e1e9ae2826eff1665d798b4b50b5c63e8282246b
Author: Pino Toscano <pino at kde.org>
Date:   Sun Jun 28 20:11:42 2009 +0200

    [Qt4 demo] do not crash when changing the zoom with no document

diff --git a/qt4/demos/pageview.cpp b/qt4/demos/pageview.cpp
index 3c22ab4..d774998 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();
 }
 


More information about the poppler mailing list