[gnumeric] use older PANGO terms
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] use older PANGO terms
- Date: Tue, 2 Jun 2009 03:46:07 -0400 (EDT)
commit 6e70fa3bdae0a33ea990b5f9421a03014bfdc66c
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Tue Jun 2 01:45:20 2009 -0600
use older PANGO terms
2009-06-02 Andreas J. Guelzow <aguelzow pyrshep ca>
* openoffice-read.c (oo_style_prop_cell): Use an older PANGO_WEIGHT
for cutoff (which is equivalent).
---
plugins/openoffice/ChangeLog | 5 +++++
plugins/openoffice/openoffice-read.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/plugins/openoffice/ChangeLog b/plugins/openoffice/ChangeLog
index 1e35c11..b19f07b 100644
--- a/plugins/openoffice/ChangeLog
+++ b/plugins/openoffice/ChangeLog
@@ -1,5 +1,10 @@
2009-06-02 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * openoffice-read.c (oo_style_prop_cell): Use an older PANGO_WEIGHT
+ for cutoff (which is equivalent).
+
+2009-06-02 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* openoffice-read.c (oo_style_prop_cell): Also check font weight
rather than just descriptors.
diff --git a/plugins/openoffice/openoffice-read.c b/plugins/openoffice/openoffice-read.c
index aeab3af..c90bf1f 100644
--- a/plugins/openoffice/openoffice-read.c
+++ b/plugins/openoffice/openoffice-read.c
@@ -2187,7 +2187,7 @@ oo_style_prop_cell (GsfXMLIn *xin, xmlChar const **attrs)
int weight = atoi (CXML2C (attrs[1]));
if (attr_eq (attrs[1], "bold"))
weight = 700;
- gnm_style_set_font_bold (style, weight > PANGO_WEIGHT_MEDIUM);
+ gnm_style_set_font_bold (style, weight >= PANGO_WEIGHT_SEMIBOLD);
}
#if 0
else if (!strcmp (attrs[0], OO_NS_FO, "font-weight")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]