projects
/
geeqie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c85a911
)
Fixed segfaulting when alter image in directory without images.
author
Petr Ostadal
<postadal@suse.cz>
Mon, 25 Aug 2008 18:13:33 +0000
(18:13 +0000)
committer
Petr Ostadal
<postadal@suse.cz>
Mon, 25 Aug 2008 18:13:33 +0000
(18:13 +0000)
src/image.c
patch
|
blob
|
history
diff --git
a/src/image.c
b/src/image.c
index
cbb6924
..
7585c7b
100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-339,7
+339,7
@@
void image_alter(ImageWindow *imd, AlterType type)
static const gint flip[] = {1, 4, 3, 2, 1, 8, 7, 6, 5};
- if (!imd || !imd->pr) return;
+ if (!imd || !imd->pr
|| !imd->image_fd
) return;
if (imd->orientation < 1 || imd->orientation > 8) imd->orientation = 1;