X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/edc97780265eb17d606453399c17524185b9ced9..c2cf03332f51a9fa992220124635f737399fba91:/src/print-preview.c diff --git a/src/print-preview.c b/src/print-preview.c index 82096055..0ac7ab62 100644 --- a/src/print-preview.c +++ b/src/print-preview.c @@ -495,8 +495,10 @@ vik_print_preview_expose_event (GtkWidget *widget, if (preview->pixbuf == NULL) { - gint width = MIN (widget->allocation.width, 1024); - gint height = MIN (widget->allocation.height, 1024); + GtkAllocation allocation; + gtk_widget_get_allocation ( widget, &allocation ); + gint width = MIN (allocation.width, 1024); + gint height = MIN (allocation.height, 1024); preview->pixbuf = get_thumbnail(drawable, width, height); }