diff options
| author | Manolo Gouy <Manolo> | 2017-08-30 10:21:56 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-08-30 10:21:56 +0000 |
| commit | 1b7750913328829c2d3c7f99b36b3a44758e69a2 (patch) | |
| tree | 1c011a19d9f89586503024393a1103d9b07860da /src | |
| parent | 6ac3d87d3161e294da9a9767fdd2cde3132f3109 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Shared_Image.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Shared_Image.cxx b/src/Fl_Shared_Image.cxx index 3c6727696..a4cfd30b8 100644 --- a/src/Fl_Shared_Image.cxx +++ b/src/Fl_Shared_Image.cxx @@ -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) { |
