[goffice] GOLine: fix rendering of dotted lines.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] GOLine: fix rendering of dotted lines.
- Date: Thu, 12 Feb 2015 20:36:00 +0000 (UTC)
commit a4d0e31cfcacc088e4b36e32269fbb9cb4ea4909
Author: Morten Welinder <terra gnome org>
Date: Thu Feb 12 15:35:37 2015 -0500
GOLine: fix rendering of dotted lines.
ChangeLog | 5 +++++
NEWS | 1 +
goffice/utils/go-line.c | 8 ++++----
3 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f9d8233..91f829f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-12 Morten Welinder <terra gnome org>
+
+ * goffice/utils/go-line.c: Use 0.0, not G_MINDOUBLE, to make cairo
+ produce dots. That seems to be the documented way to do it.
+
2015-02-11 Jean Brefort <jean brefort normalesup org>
* goffice/math/go-rangefunc.c (go_range_increasing),
diff --git a/NEWS b/NEWS
index 5ba245e..80e1b57 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Jean:
Morten:
* Fix problem with linear solver.
* Add arrow selector widget.
+ * Fix rendering of dotted lines. [#744419]
--------------------------------------------------------------------------
goffice 0.10.20:
diff --git a/goffice/utils/go-line.c b/goffice/utils/go-line.c
index c4fc2ac..6dfa85d 100644
--- a/goffice/utils/go-line.c
+++ b/goffice/utils/go-line.c
@@ -107,12 +107,12 @@ typedef struct {
double dash[8];
} GOLineDashDesc;
-static GOLineDashDesc const line_short_dot_desc = {2, 10, { G_MINDOUBLE, 2 } };
+static GOLineDashDesc const line_short_dot_desc = {2, 10, { 0, 2 } };
static GOLineDashDesc const line_dot_desc = {2, 12, { 3, 3 } };
static GOLineDashDesc const line_short_dash_desc = {2, 9, { 6, 3 } };
-static GOLineDashDesc const line_short_dash_dot_desc = {4, 12, { 6, 3, G_MINDOUBLE, 3 } };
-static GOLineDashDesc const line_short_dash_dot_dot_desc = {6, 15, { 6, 3, G_MINDOUBLE, 3, G_MINDOUBLE,
3 } };
-static GOLineDashDesc const line_dash_dot_dot_dot_desc = {8, 21, { 9, 3, G_MINDOUBLE, 3, G_MINDOUBLE,
3, G_MINDOUBLE, 3 } };
+static GOLineDashDesc const line_short_dash_dot_desc = {4, 12, { 6, 3, 0, 3 } };
+static GOLineDashDesc const line_short_dash_dot_dot_desc = {6, 15, { 6, 3, 0, 3, 0, 3 } };
+static GOLineDashDesc const line_dash_dot_dot_dot_desc = {8, 21, { 9, 3, 0, 3, 0, 3, 0, 3 } };
static GOLineDashDesc const line_dash_dot_desc = {4, 24, { 9, 6, 3, 6 } };
static GOLineDashDesc const line_dash_dot_dot_desc = {6, 24, { 9, 3, 3, 3, 3, 3 } };
static GOLineDashDesc const line_dash_desc = {2, 16, { 12, 4 } };
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]