]> www.fi.muni.cz Git - evince.git/commitdiff
Do not try to best fit if the view is not realized
authorMarco Pesenti Gritti <marco@gnome.org>
Mon, 21 Feb 2005 10:43:44 +0000 (10:43 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 21 Feb 2005 10:43:44 +0000 (10:43 +0000)
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

ChangeLog
shell/ev-view.c

index 835492e519e55a9914b9728608eb81e5ebeaf703..0d6165a2156d12459f867265f554c74134387e56 100644 (file)
--- 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).
index 589311ad85956e56333a004ea06ff65172f5ced3..8998a7f161fb1050df1086836526d6c00b244243 100644 (file)
@@ -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;