[goffice] Restore dashes with dots in charts lines



commit f413cb34d20ff1921536096ae8259fda17e7bcd6
Author: Jean Brefort <jean brefort normalesup org>
Date:   Thu May 8 09:29:37 2014 +0200

    Restore dashes with dots in charts lines

 ChangeLog               |    4 ++++
 NEWS                    |    1 +
 goffice/utils/go-line.c |    8 ++++----
 3 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cb4157c..252218b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2014-05-08  Jean Brefort  <jean brefort normalesup org>
+
+       * goffice/utils/go-line.c: restore dashes with dots.
+
 2014-05-07  Jean Brefort  <jean brefort normalesup org>
 
        * goffice/graph/gog-3d-box.c (gog_3d_box_class_init): add a view class for
diff --git a/NEWS b/NEWS
index a629cfe..950607c 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ Jean
        * Don't use GDK_THREADS_*. [728793]
        * Fixed Gog3DBox properties editor.
        * Add a view class to Gog3DBox to support data that are view dependent.
+       * Restore dashes with dots in charts lines.
 
 Morten:
        * Clean out old #ifdef mess.
diff --git a/goffice/utils/go-line.c b/goffice/utils/go-line.c
index 4c6df4d..f76ca8a 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, { 0, 2 } };
+static GOLineDashDesc const line_short_dot_desc =              {2, 10, { 1e-10, 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, 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_short_dash_dot_desc =         {4, 12, { 6, 3, 1e-10, 3 } };
+static GOLineDashDesc const line_short_dash_dot_dot_desc =     {6, 15, { 6, 3, 1e-10, 3, 1e-10, 3 } };
+static GOLineDashDesc const line_dash_dot_dot_dot_desc =       {8, 21, { 9, 3, 1e-10, 3, 1e-10, 3, 1e-10, 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]