[goffice] Don't zoom hairline.
- From: Jean Bréfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Don't zoom hairline.
- Date: Wed, 17 Mar 2010 14:52:05 +0000 (UTC)
commit 3431cb2ef3634fa2815f3ee468771fb5d103d449
Author: Jean Brefort <jean brefort normalesup org>
Date: Wed Mar 10 19:55:05 2010 +0100
Don't zoom hairline.
ChangeLog | 5 +++++
goffice/canvas/goc-polyline.c | 14 +++++++-------
2 files changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d2d67ea..3d0f6a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-03-10 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/canvas/goc-polyline.c (goc_polyline_prepare_draw): don't zoom
+ hairline.
+
2010-03-09 Jean Brefort <jean brefort normalesup org>
* goffice/utils/go-file.c (go_shell_arg_to_uri): check for fd:// type
diff --git a/goffice/canvas/goc-polyline.c b/goffice/canvas/goc-polyline.c
index 472d159..ec187ff 100644
--- a/goffice/canvas/goc-polyline.c
+++ b/goffice/canvas/goc-polyline.c
@@ -113,13 +113,13 @@ goc_polyline_prepare_draw (GocItem const *item, cairo_t *cr, gboolean flag)
if (polyline->nb_points == 0)
return FALSE;
- if (go_styled_object_set_cairo_line (GO_STYLED_OBJECT (item), cr)) {
- if (1 == flag) {
- goc_group_cairo_transform (item->parent, cr, polyline->points[0].x, polyline->points[0].y);
- cairo_move_to (cr, 0., 0.);
- } else {
- cairo_move_to (cr, polyline->points[0].x, polyline->points[0].y);
- }
+ if (1 == flag) {
+ goc_group_cairo_transform (item->parent, cr, polyline->points[0].x, polyline->points[0].y);
+ cairo_move_to (cr, 0., 0.);
+ } else {
+ cairo_move_to (cr, polyline->points[0].x, polyline->points[0].y);
+ }
+ if (goc_styled_item_set_cairo_line (GOC_STYLED_ITEM (item), cr)) {
if (polyline->use_spline) {
GOBezierSpline *spline = (GOBezierSpline *) g_object_get_data (G_OBJECT (polyline), "spline");
cairo_save (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]