diff options
Diffstat (limited to 'libcdr')
-rw-r--r-- | libcdr/libcdr-0.0.10-ellipse.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libcdr/libcdr-0.0.10-ellipse.patch b/libcdr/libcdr-0.0.10-ellipse.patch new file mode 100644 index 000000000000..0b392a702b35 --- /dev/null +++ b/libcdr/libcdr-0.0.10-ellipse.patch @@ -0,0 +1,19 @@ +--- a/src/lib/CDRParser.cpp ++++ b/src/lib/CDRParser.cpp +@@ -1186,6 +1186,16 @@ void libcdr::CDRParser::readEllipse(WPXInputStream *input) + double rx = fabs(cx); + double ry = fabs(cy); + ++ while (angle1 < 0.0) ++ angle1 += 2*M_PI; ++ while (angle1 > 2*M_PI) ++ angle1 -= 2*M_PI; ++ ++ while (angle2 < 0.0) ++ angle2 += 2*M_PI; ++ while (angle2 > 2*M_PI) ++ angle2 -= 2*M_PI; ++ + if (angle1 != angle2) + { + if (angle2 < angle1) |