diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_File_Chooser2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
