[goffice] Do not draw the line over the arrow head at start. [#745736]
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Do not draw the line over the arrow head at start. [#745736]
- Date: Tue, 10 Mar 2015 17:15:46 +0000 (UTC)
commit acf09231f6fdf617c9ced4a1f05446ece03cceaf
Author: Jean Brefort <jean brefort normalesup org>
Date: Fri Mar 6 16:59:18 2015 +0100
Do not draw the line over the arrow head at start. [#745736]
ChangeLog | 5 +++++
NEWS | 3 +++
goffice/canvas/goc-line.c | 2 +-
3 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e860053..79405ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,6 +10,11 @@
(axis_line_render): ensure that ticks on limits are not hidden because of
rounding errors.
+2015-03-06 Johannes Deutsch <j_deutsch web de>
+
+ * goffice/canvas/goc-line.c (goc_line_draw): do not draw the line over the
+ arrow head at start. [#745736]
+
2015-03-04 Morten Welinder <terra gnome org>
* configure.ac: Post-release bump.
diff --git a/NEWS b/NEWS
index 59a23be..fe943a5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,8 @@
goffice 0.10.22:
+Johannes Deutsch:
+ * Do not draw the line over the arrow head at start. [#745736]
+
--------------------------------------------------------------------------
goffice 0.10.21:
diff --git a/goffice/canvas/goc-line.c b/goffice/canvas/goc-line.c
index 30946cd..5b02b9d 100644
--- a/goffice/canvas/goc-line.c
+++ b/goffice/canvas/goc-line.c
@@ -260,7 +260,7 @@ goc_line_draw (GocItem const *item, cairo_t *cr)
if ((endx != 0. || endy!= 0.) &&
go_styled_object_set_cairo_line (GO_STYLED_OBJECT (item), cr)) {
/* try to avoid horizontal and vertical lines between two pixels */
- cairo_move_to (cr, 0., 0.);
+ cairo_move_to (cr, startx, endx);
cairo_line_to (cr, endx, endy);
cairo_stroke (cr);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]