summaryrefslogtreecommitdiff
path: root/external/libodfgen/ellipticalarc.patch
blob: 27aaee77cb8a714a8f9513992b71701e73e3cb16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/GraphicFunctions.cxx
+++ src/GraphicFunctions.cxx
@@ -59,6 +59,10 @@
                           double rx, double ry, double phi, bool largeArc, bool sweep, double x, double y,
                           double &xmin, double &ymin, double &xmax, double &ymax)
 {
+	if (x0 == x && y0 == y) {
+		return;
+	}
+
 	phi *= M_PI/180;
 	if (rx < 0.0)
 		rx *= -1.0;