diff options
author | Marco Pesenti Gritti <marco@gnome.org> | 2005-02-21 10:43:44 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-02-21 10:43:44 (GMT) |
commit | 2bc43f51aad785bd5bddeb4e743756894f3e0b1c (patch) | |
tree | ac33c268f5083085cc49572a20621517f6d602e1 /shell | |
parent | 1a99419422ea58c90a64e8c86b36503f73c6e7a5 (diff) |
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
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-view.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c index 589311a..8998a7f 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; |