From: Carlos Garcia Campos Date: Sun, 9 May 2010 14:47:46 +0000 (+0200) Subject: [libview] Do nothing in size_allocate when document is not yet loaded X-Git-Tag: EVINCE_2_31_2~59 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=e33ec3d4af0b1e1877df50fb39d62a51f20ff275;p=evince.git [libview] Do nothing in size_allocate when document is not yet loaded --- diff --git a/libview/ev-view.c b/libview/ev-view.c index 194361f5..69f4bdd0 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;