[gnumeric] xls: fix t6002.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] xls: fix t6002.
- Date: Wed, 4 Mar 2015 23:27:22 +0000 (UTC)
commit f1957eb584c701259d0cdfef5358c6a058c1abb3
Author: Morten Welinder <terra gnome org>
Date: Wed Mar 4 18:26:04 2015 -0500
xls: fix t6002.
plugins/excel/ms-chart.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/plugins/excel/ms-chart.c b/plugins/excel/ms-chart.c
index cc24c76..31dab39 100644
--- a/plugins/excel/ms-chart.c
+++ b/plugins/excel/ms-chart.c
@@ -4356,10 +4356,10 @@ chart_write_text (XLChartWriteState *s, GOData const *src, GOStyledObject const
chart_write_BEGIN (s);
/* BIFF_CHART_pos, optional we use auto positioning */
- ms_biff_put_2byte (s->bp, BIFF_CHART_fontx,
- (style && !style->font.auto_font)
- ? excel_font_from_go_font (&s->ewb->base, style->font.font)
- : 5);
+ if (style && !style->font.auto_font)
+ ms_biff_put_2byte (s->bp, BIFF_CHART_fontx,
+ excel_font_from_go_font (&s->ewb->base, style->font.font));
+
chart_write_AI (s, src, 0, 1);
if (obj && purpose) {
data = ms_biff_put_len_next (s->bp, BIFF_CHART_objectlink, 6);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]