[goffice] Use a better tiny value for dots.



commit abac878a7abd32de021f6a9fc4278be47d4e60ee
Author: Jean Brefort <jean brefort normalesup org>
Date:   Thu May 8 16:24:19 2014 +0200

    Use a better tiny value for dots.

 goffice/utils/go-line.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/goffice/utils/go-line.c b/goffice/utils/go-line.c
index f76ca8a..b71c8b0 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, { 1e-10, 2 } };
+static GOLineDashDesc const line_short_dot_desc =              {2, 10, { G_MINDOUBLE, 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, 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_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_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]