From 50575289636644581ee94c172df7aed874f17747 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 8 Feb 2015 19:30:52 +0000 Subject: Fix for STR#3131 : .xbm images were not previewed git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_File_Chooser2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_File_Chooser2.cxx b/src/Fl_File_Chooser2.cxx index 84a17beb0..e186c140b 100644 --- a/src/Fl_File_Chooser2.cxx +++ b/src/Fl_File_Chooser2.cxx @@ -1427,7 +1427,8 @@ Fl_File_Chooser::update_preview() } } else if (image && ( (image->w() <= 0) || (image->h() <= 0) || - (image->d() <= 0) )) { + (image->d() < 0) || + (image->count() <= 0))) { // Image has errors? Show big 'X' previewBox->label("X"); previewBox->align(FL_ALIGN_CLIP); -- cgit v1.2.3