division to calculate page_ratio. Fixes crash with landscape format
pixbufs.
+2005-01-21 Martin Kretzschmar <martink@gnome.org>
+
+ * pixbuf/pixbuf-document.c
+ (pixbuf_document_thumbnails_get_dimensions): force floating point
+ division to calculate page_ratio. Fixes crash with landscape
+ format pixbufs.
+
Thu Jan 20 18:56:35 2005 Jonathan Blandford <jrb@redhat.com>
* shell/ev-view.c (ev_view_realize): make the bg color darker.
PixbufDocument *pixbuf_document = PIXBUF_DOCUMENT (document);
gdouble page_ratio;
- page_ratio = gdk_pixbuf_get_height (pixbuf_document->pixbuf) /
+ page_ratio = ((double)gdk_pixbuf_get_height (pixbuf_document->pixbuf)) /
gdk_pixbuf_get_width (pixbuf_document->pixbuf);
*width = suggested_width;
*height = (gint) (suggested_width * page_ratio);