summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-07-19 23:06:36 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-09-18 00:15:13 +0200
commit6efdcc4c0fa42e3a7b01924d6e5cf576a1ded8d8 (patch)
treec6413e361ad4ff6e9d2d13a61f172a52717bd40c
parent99dfc082da2886975b32c66a7812122194ba63ce (diff)
fix assert when opening a calc document in new orcus styles import
Change-Id: I6e62ddaeb20687bf3ad3e7de86f749e1047363b9
-rw-r--r--sc/source/filter/orcus/interface.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index 6be6374a0910..b6b12b45bf7d 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -797,8 +797,9 @@ void ScOrcusStyles::font::applyToItemSet(SfxItemSet& rSet) const
if (mbHasUnderlineAttr)
{
- rSet.Put(SvxUnderlineItem(meUnderline, ATTR_FONT_UNDERLINE));
- rSet.Put(SvxColorItem(maUnderlineColor, ATTR_FONT_UNDERLINE));
+ SvxUnderlineItem aUnderline(meUnderline, ATTR_FONT_UNDERLINE);
+ aUnderline.SetColor(maUnderlineColor);
+ rSet.Put(aUnderline);
}
rSet.Put( SvxColorItem(maColor, ATTR_FONT_COLOR));