From: Marco Pesenti Gritti <marco@gnome.org> Date: Mon, 21 Feb 2005 10:43:44 +0000 (+0000) Subject: Do not try to best fit if the view is not realized X-Git-Tag: EVINCE_0_1_5~35 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=2bc43f51aad785bd5bddeb4e743756894f3e0b1c;p=evince.git Do not try to best fit if the view is not realized 2005-02-21 Marco Pesenti Gritti <marco@gnome.org> * shell/ev-view.c: (ev_view_best_fit): Do not try to best fit if the view is not realized --- diff --git a/ChangeLog b/ChangeLog index 835492e5..0d6165a2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-02-21 Marco Pesenti Gritti <marco@gnome.org> + + * shell/ev-view.c: (ev_view_best_fit): + + Do not try to best fit if the view is not realized + 2005-02-20 Kostas Papadimas <pkst@gnome.org> * configure.ac (ALL_LINGUAS): Added "el" (Greek). diff --git a/shell/ev-view.c b/shell/ev-view.c index 589311ad..8998a7f1 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -1327,7 +1327,7 @@ ev_view_best_fit (EvView *view, int allocation_width, int allocation_height) int width, height; GtkBorder border; - if (view->document == NULL) + if (!GTK_WIDGET_REALIZED (view) || view->document == NULL) return; width = height = 0;