[dia] Bug 158262 - Screen artifacts when dragging zigzaglines with arrows
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] Bug 158262 - Screen artifacts when dragging zigzaglines with arrows
- Date: Sun, 25 Oct 2009 13:43:29 +0000 (UTC)
commit b9d620c55b584a8f488f4608b9f0dae9bd726fde
Author: Hans Breuer <hans breuer org>
Date: Sun Oct 25 14:23:54 2009 +0100
Bug 158262 - Screen artifacts when dragging zigzaglines with arrows
Even arrow_bbox() can not work correctly if calculate_arrow_point()
is using the wrong arrow.
objects/standard/line.c | 2 +-
objects/standard/polyline.c | 2 +-
objects/standard/zigzagline.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/objects/standard/line.c b/objects/standard/line.c
index 7b8d0ce..5981f46 100644
--- a/objects/standard/line.c
+++ b/objects/standard/line.c
@@ -499,7 +499,7 @@ line_update_data(Line *line)
Point move_arrow, move_line;
Point to = end;
Point from = start;
- calculate_arrow_point(&line->start_arrow, &to, &from,
+ calculate_arrow_point(&line->end_arrow, &to, &from,
&move_arrow, &move_line, line->line_width);
/* move them */
point_sub(&to, &move_arrow);
diff --git a/objects/standard/polyline.c b/objects/standard/polyline.c
index 40d54d5..4ae052d 100644
--- a/objects/standard/polyline.c
+++ b/objects/standard/polyline.c
@@ -455,7 +455,7 @@ polyline_update_data(Polyline *polyline)
Point move_arrow, move_line;
Point to = gap_endpoints[1];
Point from = poly->points[n-2];
- calculate_arrow_point(&polyline->start_arrow, &to, &from,
+ calculate_arrow_point(&polyline->end_arrow, &to, &from,
&move_arrow, &move_line, polyline->line_width);
/* move them */
point_sub(&to, &move_arrow);
diff --git a/objects/standard/zigzagline.c b/objects/standard/zigzagline.c
index 2a62f0e..fe25eb2 100644
--- a/objects/standard/zigzagline.c
+++ b/objects/standard/zigzagline.c
@@ -347,7 +347,7 @@ zigzagline_update_data(Zigzagline *zigzagline)
int n = orth->numpoints;
Point to = orth->points[n-1];
Point from = orth->points[n-2];
- calculate_arrow_point(&zigzagline->start_arrow, &to, &from,
+ calculate_arrow_point(&zigzagline->end_arrow, &to, &from,
&move_arrow, &move_line, zigzagline->line_width);
/* move them */
point_sub(&to, &move_arrow);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]