Skip to content

Commit

Permalink
Fix for STR#3131 : .xbm images were not previewed
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10561 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Manolo Gouy authored and Manolo Gouy committed Feb 8, 2015
1 parent 1dd0cdc commit 5057528
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Fl_File_Chooser2.cxx
Expand Up @@ -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);
Expand Down

0 comments on commit 5057528

Please sign in to comment.