diff options
| author | Manolo Gouy <Manolo> | 2018-03-26 16:17:00 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-03-26 16:17:00 +0000 |
| commit | 5040bbff1f11f83baa424021b4c75ad7a6e053f8 (patch) | |
| tree | 44920f290563328c58bddd15dbaae0bfdb2938a9 /src/Fl_SVG_Image.cxx | |
| parent | 4df5c6d0b0feb94d09966d62113746c2094028df (diff) | |
Fix for STR#3457: Fl_SVG_Image handling of invalid width/height
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12806 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_SVG_Image.cxx')
| -rw-r--r-- | src/Fl_SVG_Image.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_SVG_Image.cxx b/src/Fl_SVG_Image.cxx index a0116ba53..66885493f 100644 --- a/src/Fl_SVG_Image.cxx +++ b/src/Fl_SVG_Image.cxx @@ -213,7 +213,7 @@ Fl_Image *Fl_SVG_Image::copy(int W, int H) { If \ref proportional was set to \c false, the image is rasterized to the given \c width and \c height values.*/ void Fl_SVG_Image::resize(int width, int height) { - if (ld() < 0) { + if (ld() < 0 || width <= 0 || height <= 0) { return; } int w1 = width, h1 = height; |
