[gthumb] can view tiff files, but can not print
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] can view tiff files, but can not print
- Date: Sun, 23 Mar 2014 10:38:12 +0000 (UTC)
commit 67128d593ec709f5ba2632ce20a47eb43744c294
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sun Mar 23 11:35:06 2014 +0100
can view tiff files, but can not print
do not campare unsigned integers with integers
[bug #726260]
extensions/cairo_io/cairo-image-surface-tiff.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/extensions/cairo_io/cairo-image-surface-tiff.c b/extensions/cairo_io/cairo-image-surface-tiff.c
index df26682..d61f6b9 100644
--- a/extensions/cairo_io/cairo-image-surface-tiff.c
+++ b/extensions/cairo_io/cairo-image-surface-tiff.c
@@ -176,26 +176,26 @@ _cairo_image_surface_create_from_tiff (GInputStream *istream,
max_height = -1;
min_diff = 0;
do {
- uint32 image_width;
- uint32 image_height;
+ int width;
+ int height;
- if (TIFFGetField (tif, TIFFTAG_IMAGEWIDTH, &image_width) != 1)
+ if (TIFFGetField (tif, TIFFTAG_IMAGEWIDTH, &width) != 1)
continue;
- if (TIFFGetField (tif, TIFFTAG_IMAGELENGTH, &image_height) != 1)
+ if (TIFFGetField (tif, TIFFTAG_IMAGELENGTH, &height) != 1)
continue;
if (! TIFFRGBAImageOK (tif, emsg))
continue;
- if (image_width > max_width) {
- max_width = image_width;
- max_height = image_height;
+ if (width > max_width) {
+ max_width = width;
+ max_height = height;
if (requested_size <= 0)
best_directory = TIFFCurrentDirectory (tif);
}
if (requested_size > 0) {
- int diff = abs (requested_size - image_width);
+ int diff = abs (requested_size - width);
if (first_directory) {
min_diff = diff;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]