Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libview
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2010-05-09 14:47:46 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2010-05-10 11:58:47 (GMT)
commite33ec3d4af0b1e1877df50fb39d62a51f20ff275 (patch)
treecabe0fe37e3682ba61e1b9bc0f36899998510014 /libview
parent6f9a44f48ab43e4a1efb46136cba8accb3487f92 (diff)
[libview] Do nothing in size_allocate when document is not yet loaded
Diffstat (limited to 'libview')
-rw-r--r--libview/ev-view.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 194361f..69f4bdd 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -2875,7 +2875,10 @@ ev_view_size_allocate (GtkWidget *widget,
gint root_x, root_y;
GTK_WIDGET_CLASS (ev_view_parent_class)->size_allocate (widget, allocation);
-
+
+ if (!view->document)
+ return;
+
if (view->sizing_mode == EV_SIZING_FIT_WIDTH ||
view->sizing_mode == EV_SIZING_BEST_FIT) {
GtkRequisition req;