Krolyxon
Commit 92b2779

Branches

Refs →

nsxiv92b2779

Fixed issue #28

Author
Bert Münnich
Date
2011-11-11 22:54 +0100
Parent
5034792
Commit
92b2779b001058accd561d2fff4d1348d04dd448

+7 −9

2 files changed

  1. M Makefile +1 −1
  2. M image.c +6 −8
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20111105
1+VERSION = git-20111111
22
33 CC = gcc
44 CFLAGS = -ansi -Wall -pedantic -O2
M image.c View
@@ -311,18 +311,16 @@ bool img_load(img_t *img, const fileinfo_t *file) {
311311 imlib_image_set_changes_on_disk();
312312 imlib_context_set_anti_alias(img->aa);
313313
314− fmt = imlib_image_format();
315− /* avoid unused-but-set-variable warning */
316− (void) fmt;
317−
314+ if ((fmt = imlib_image_format()) != NULL) {
318315 #if EXIF_SUPPORT
319− if (STREQ(fmt, "jpeg"))
320− exif_auto_orientate(file);
316+ if (STREQ(fmt, "jpeg"))
317+ exif_auto_orientate(file);
321318 #endif
322319 #if GIF_SUPPORT
323− if (STREQ(fmt, "gif"))
324− img_load_gif(img, file);
320+ if (STREQ(fmt, "gif"))
321+ img_load_gif(img, file);
325322 #endif
323+ }
326324
327325 img->w = imlib_image_get_width();
328326 img->h = imlib_image_get_height();