]> git.street.me.uk Git - andy/viking.git/blobdiff - src/print-preview.c
Add Refresh to consider reloading a Mapnik Rendering configuration.
[andy/viking.git] / src / print-preview.c
index 82096055cb0e450e0902e5812e2e85bc2651e754..0ac7ab624ea1fa9ebeb5957cb1b6b89218a47005 100644 (file)
@@ -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);
         }