Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c2
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;