qt4/demos/pageview.cpp | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit e1e9ae2826eff1665d798b4b50b5c63e8282246b
Author: Pino Toscano <[email protected]>
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();
}
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler