[goffice] Restore pixel aligned lines. [#686476]
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Restore pixel aligned lines. [#686476]
- Date: Fri, 19 Oct 2012 19:00:30 +0000 (UTC)
commit 1f42e2ea02399a4becc0b029eff6d85d2973f33f
Author: Jean Brefort <jean brefort normalesup org>
Date: Fri Oct 19 18:28:55 2012 +0200
Restore pixel aligned lines. [#686476]
ChangeLog | 5 +++++
NEWS | 1 +
goffice/graph/gog-legend.c | 1 +
3 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6fcab15..90f57ca 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-19 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/graph/gog-legend.c (cb_render_elements): restore pixel aligned
+ lines. [#686476]
+
2012-10-10 Jean Brefort <jean brefort normalesup org>
* goffice/utils/go-style.h: add some more auto fields.
diff --git a/NEWS b/NEWS
index c533309..703af53 100644
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ Jean:
* Accept an offset up to 20 for graph data labels. [#684892]
* Removed span tab 3D axes that don't support it. [#685405]
* Don't draw a marker in the legend when not needed. [#685484]
+ * Restore pixel aligned lines. [#686476]
--------------------------------------------------------------------------
goffice 0.9.6:
diff --git a/goffice/graph/gog-legend.c b/goffice/graph/gog-legend.c
index fbf1283..060cf86 100644
--- a/goffice/graph/gog-legend.c
+++ b/goffice/graph/gog-legend.c
@@ -470,6 +470,7 @@ cb_render_elements (unsigned index, GOStyle const *base_style, char const *name,
gog_renderer_push_style (renderer, style);
half_width = 0.5 * gog_renderer_line_size (renderer, style->line.width);
line_path = go_path_new ();
+ go_path_set_options (line_path, GO_PATH_OPTIONS_SHARP);
y = data->y + glv->element_height / 2.;
go_path_move_to (line_path, data->x + half_width, y);
go_path_line_to (line_path, data->x + data->swatch.w * GLV_LINE_LENGTH_EM - half_width, y);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]