[goffice] fix conditions for conditional format export to ODF



commit 221d0d8075ae366ae6192aed215372259c8e0496
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Mon Mar 24 23:34:06 2014 -0600

    fix conditions for conditional format export to ODF
    
    2014-03-20 Andreas J. Guelzow <aguelzow pyrshep ca>
    
        * goffice/utils/go-format.c (go_format_odf_style_map): fix format
        prefix strings

 ChangeLog                 |    5 +++++
 goffice/utils/go-format.c |   12 ++++++------
 2 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f2413bb..964ac1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-03-20 Andreas J. Guelzow <aguelzow pyrshep ca>
 
+       * goffice/utils/go-format.c (go_format_odf_style_map): fix format
+       prefix strings
+
+2014-03-20 Andreas J. Guelzow <aguelzow pyrshep ca>
+
        * goffice/utils/go-format.c (go_format_odf_style_map): figure
        out the correct number of digits to use for condition values
 
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index 629df49..5bce42d 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -7394,24 +7394,24 @@ go_format_odf_style_map (GOFormat const *fmt, int cond_part)
 
        switch (fmt->u.cond.conditions[cond_part].op) {
        case GO_FMT_COND_EQ:
-               format_string = "value()=%g";
+               format_string = "value()=";
                break;
        case GO_FMT_COND_NE:
-               format_string = "value()!=%g";
+               format_string = "value()!=";
                break;
        case GO_FMT_COND_NONTEXT: /* Under certain circumstances this */
                                   /*appears for second of two conditions */
        case GO_FMT_COND_LT:
-               format_string = "value()<%g";
+               format_string = "value()<";
                break;
        case GO_FMT_COND_LE:
-               format_string = "value()<=%g";
+               format_string = "value()<=";
                break;
        case GO_FMT_COND_GT:
-               format_string = "value()>%g";
+               format_string = "value()>";
                break;
        case GO_FMT_COND_GE:
-               format_string = "value()>=%g";
+               format_string = "value()>=";
                break;
        default:
                return NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]