X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/a753a9a9b89b27ce0e243bd7d3980ecc559a3027..23d6216c871ca648a093bd992f25fd9ce18f971d:/src/print-preview.c?ds=inline 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); }