[goffice] fix fraction export to ODF



commit 43810d73694036e0d8a9c0a4b479973b73f93019
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Mon Jun 1 00:59:27 2009 -0600

    fix fraction export to ODF
    
    2009-06-01  Andreas J. Guelzow  <aguelzow pyrshep ca>
    
    	* goffice/utils/go-format.c (go_format_output_fraction_to_odf):
    	  indicate when number:text are again possible
---
 ChangeLog                 |    5 +++++
 goffice/utils/go-format.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 48e2674..40bb5fc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-06-01  Andreas J. Guelzow  <aguelzow pyrshep ca>
 
+	* goffice/utils/go-format.c (go_format_output_fraction_to_odf):
+	  indicate when number:text are again possible
+
+2009-06-01  Andreas J. Guelzow  <aguelzow pyrshep ca>
+
 	* goffice/utils/go-format.c (go_format_output_date_to_odf):
 	  mark elaspsed time with gnm: attribute
 	
diff --git a/goffice/utils/go-format.c b/goffice/utils/go-format.c
index fc07d68..745a6d1 100644
--- a/goffice/utils/go-format.c
+++ b/goffice/utils/go-format.c
@@ -5916,7 +5916,6 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt, char con
 			if (fraction_completed) break;
                         /* ODF allows only for a single fraction specification */
 			ODF_CLOSE_STRING;
-			fraction_in_progress = TRUE;
 
 			fixed_denominator = atoi (xl);
 			while (g_ascii_isdigit (*xl) || *xl == '?' ||*xl == '#') {
@@ -5943,6 +5942,7 @@ go_format_output_fraction_to_odf (GsfXMLOut *xout, GOFormat const *fmt, char con
 					     min_numerator_digits);
 			gsf_xml_out_end_element (xout); /* </number:fraction> */
 			fraction_completed = TRUE;
+			fraction_in_progress = FALSE;
 			break;
 		}
 



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