Permalink
Browse files

Check listness of image in `gimp-open-image' before trying to take it…

…s cdr
  • Loading branch information...
1 parent c8619bc commit 1265a3762395d9184fb4ec7c086f89c8c717328b @pft committed Apr 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 gimp-mode.el
View
@@ -2952,7 +2952,7 @@ If GIMP is not running as an inferior process, open image(s) with gimp-remote."
gimp-program
image)
(call-process gimp-program nil 0 nil image))))))
- (when (not (cdr img))
+ (when (and (listp img) (not (cdr img)))
(setq img (car img)))
(if (listp img)
(progn

0 comments on commit 1265a37

Please sign in to comment.