[gnumeric] xlsx: import line width.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xlsx: import line width.
- Date: Mon, 21 Apr 2014 00:02:05 +0000 (UTC)
commit 5dd7351ec670f0c3512baceeac8a19354f074753
Author: Morten Welinder <terra gnome org>
Date: Sun Apr 20 20:01:32 2014 -0400
xlsx: import line width.
plugins/excel/ChangeLog | 1 +
plugins/excel/xlsx-read-drawing.c | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/plugins/excel/ChangeLog b/plugins/excel/ChangeLog
index 53371cb..8455ebd 100644
--- a/plugins/excel/ChangeLog
+++ b/plugins/excel/ChangeLog
@@ -4,6 +4,7 @@
GO_STYLE_FONT marker, solidFill refers to font colour.
(xlsx_chart_text_start): Set sp_type flag GO_STYLE_FONT.
(xlsx_chart_text): Clear flag.
+ (xlsx_style_line_start): Handle line width.
2014-04-19 Morten Welinder <terra gnome org>
diff --git a/plugins/excel/xlsx-read-drawing.c b/plugins/excel/xlsx-read-drawing.c
index 4006c41..fb357b5 100644
--- a/plugins/excel/xlsx-read-drawing.c
+++ b/plugins/excel/xlsx-read-drawing.c
@@ -1168,12 +1168,20 @@ xlsx_chart_pt_sep (GsfXMLIn *xin, xmlChar const **attrs)
}
static void
-xlsx_style_line_start (GsfXMLIn *xin, G_GNUC_UNUSED xmlChar const **attrs)
+xlsx_style_line_start (GsfXMLIn *xin, xmlChar const **attrs)
{
XLSXReadState *state = (XLSXReadState *)xin->user_state;
+ int w = 0;
+
+ for (; attrs != NULL && attrs[0] && attrs[1] ; attrs += 2) {
+ if (attr_int (xin, attrs, "w", &w))
+ ; /* Nothing */
+ }
+
state->sp_type |= GO_STYLE_LINE;
if (!state->cur_style)
state->cur_style = (GOStyle *) gog_style_new ();
+ state->cur_style->line.width = w / 12700.;
state->gocolor = &state->cur_style->line.color;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]