Modify Fl_Shared_Image::scale(int, int) for the case of an erroneous image object.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12409 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
6ac3d87d31
commit
1b77509133
@ -400,7 +400,7 @@ void Fl_Shared_Image::scale(int width, int height, int proportional, int can_exp
|
||||
{
|
||||
w(width);
|
||||
h(height);
|
||||
if (!image_) return;
|
||||
if (!image_ || image_->fail()) return;
|
||||
float fw = image_->w() / float(width);
|
||||
float fh = image_->h() / float(height);
|
||||
if (proportional) {
|
||||
|
Loading…
Reference in New Issue
Block a user