summaryrefslogtreecommitdiff
path: root/src/Fl_SVG_Image.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_SVG_Image.cxx')
-rw-r--r--src/Fl_SVG_Image.cxx2
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;