diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-07-19 23:06:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-17 18:19:38 +0200 |
commit | b725609577b3b0f6ae50518bc64a61b87a0222b5 (patch) | |
tree | b739f6cf4c0d208de6d1a4fb45d3a18ef9992cae | |
parent | Reform function to apply protection in orcus interface (diff) | |
download | core-b725609577b3b0f6ae50518bc64a61b87a0222b5.tar.gz core-b725609577b3b0f6ae50518bc64a61b87a0222b5.zip |
fix assert when opening a calc document in new orcus styles import
Change-Id: I6e62ddaeb20687bf3ad3e7de86f749e1047363b9
-rw-r--r-- | sc/source/filter/orcus/interface.cxx | 5 |
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)); |