From 5040bbff1f11f83baa424021b4c75ad7a6e053f8 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 26 Mar 2018 16:17:00 +0000 Subject: 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 --- src/Fl_SVG_Image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_SVG_Image.cxx') 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; -- cgit v1.2.3