aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 66f517b72e1..e929c204bdd 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -415,7 +415,7 @@ DEFUN ("pixmap-spec-p", Fpixmap_spec_p, Spixmap_spec_p, 1, 1, 0,
415 415
416static long 416static long
417load_pixmap (f, name, w_ptr, h_ptr) 417load_pixmap (f, name, w_ptr, h_ptr)
418 FRAME_PTR *f; 418 FRAME_PTR f;
419 Lisp_Object name; 419 Lisp_Object name;
420 unsigned int *w_ptr, *h_ptr; 420 unsigned int *w_ptr, *h_ptr;
421{ 421{
@@ -452,8 +452,8 @@ load_pixmap (f, name, w_ptr, h_ptr)
452 } 452 }
453 UNBLOCK_INPUT; 453 UNBLOCK_INPUT;
454 454
455 if (! bitmap_id) 455 if (bitmap_id < 0)
456 Fsignal (Qerror, Fcons (build_string ("undefined bitmap"), 456 Fsignal (Qerror, Fcons (build_string ("invalid or undefined bitmap"),
457 Fcons (name, Qnil))); 457 Fcons (name, Qnil)));
458 458
459 *w_ptr = x_bitmap_width (f, bitmap_id); 459 *w_ptr = x_bitmap_width (f, bitmap_id);