From 988e0d0819c7e6b068b1c1741a50b547f8414cf7 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 31 Aug 2016 15:19:46 +0100 Subject: prevent division by zero for gradient with no points and add test --- test/data/bad_gradient_points.svg | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 test/data/bad_gradient_points.svg (limited to 'test') diff --git a/test/data/bad_gradient_points.svg b/test/data/bad_gradient_points.svg new file mode 100644 index 0000000..fc73313 --- /dev/null +++ b/test/data/bad_gradient_points.svg @@ -0,0 +1,45 @@ + + + + + + > + + + + + + + + + + + + + + + 4 /> + + + + + + + + 4 /> + + + + + + 4 /> + + + + + + -- cgit v1.2.3