[gnumeric] replace GSF_ODF_VERSION with gsf_odf_version
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] replace GSF_ODF_VERSION with gsf_odf_version
- Date: Tue, 26 May 2009 00:31:19 -0400 (EDT)
commit 678a0e696ff8c7b93888461d2ebbc88d86051bfc
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Mon May 25 22:30:53 2009 -0600
replace GSF_ODF_VERSION with gsf_odf_version
2009-05-25 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-write.c: replace GSF_ODF_VERSION with gsf_odf_version
since enums are handled at compile time.
---
plugins/openoffice/ChangeLog | 5 +++++
plugins/openoffice/openoffice-write.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index ec019c2..f6b9a29 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
2009-05-25 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * openoffice-write.c: replace GSF_ODF_VERSION with gsf_odf_version
+ since enums are handled at compile time.
+
+2009-05-25 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* openoffice-write.c (odf_write_style_paragraph_properties): Since
OOo ignores style:text-align-source we have to avoid setting
fo:text-align in this case.
diff --git a/plugins/openoffice/openoffice-write.c b/plugins/openoffice/openoffice-write.c
index 106fb40..c47ca51 100644
--- a/plugins/openoffice/openoffice-write.c
+++ b/plugins/openoffice/openoffice-write.c
@@ -1863,7 +1863,7 @@ odf_print_spreadsheet_content_prelude (GnmOOExport *state)
odf_add_bool (state->xml, TABLE "precision-as-shown", FALSE);
odf_add_bool (state->xml, TABLE "search-criteria-must-apply-to-whole-cell", TRUE);
odf_add_bool (state->xml, TABLE "use-regular-expressions", FALSE);
- if (GSF_ODF_VERSION >= 12)
+ if (gsf_odf_version > 1.1)
odf_add_bool (state->xml, TABLE "use-wildcards", FALSE);
gsf_xml_out_start_element (state->xml, TABLE "null-date");
/* As encouraged by the OpenFormula definition we "compensate" here. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]