[dia] svg: matherr avoidance was a bit too cautious
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] svg: matherr avoidance was a bit too cautious
- Date: Sun, 21 Jul 2013 14:21:01 +0000 (UTC)
commit bf9e638b74af0df0267e960351a8a75b9ffd8932
Author: Hans Breuer <hans breuer org>
Date: Sun Jul 21 13:20:38 2013 +0200
svg: matherr avoidance was a bit too cautious
Visible with render-test.svg loosing it's two half arcs.
lib/dia_svg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/dia_svg.c b/lib/dia_svg.c
index 9a70d0e..7c15d61 100644
--- a/lib/dia_svg.c
+++ b/lib/dia_svg.c
@@ -1079,7 +1079,7 @@ dia_svg_parse_path(GArray *points, const gchar *path_str, gchar **unparsed,
/* avoid matherr with bogus values - just ignore them
* does happen e.g. with 'Chem-Widgets - clamp-large'
*/
- if (last_point.x != dest.x && last_point.y != dest.y)
+ if (last_point.x != dest.x || last_point.y != dest.y)
_path_arc (points, last_point.x, last_point.y,
rx, ry, xrot, largearc, sweep, dest.x, dest.y,
&dest_c);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]