diff options
author | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2015-03-18 15:23:58 +0100 |
---|---|---|
committer | Zolnai Tamás <zolnaitamas2000@gmail.com> | 2015-03-21 16:19:11 +0100 |
commit | 3e03767906c9a283ba0c65114f58f38276902c63 (patch) | |
tree | 5dc821e413131371cd4b9075952af64f8df494da /sw/source/filter/ww8/rtfattributeoutput.cxx | |
parent | Char highlight: test related to editing of MSO background attributes (diff) | |
download | core-3e03767906c9a283ba0c65114f58f38276902c63.tar.gz core-3e03767906c9a283ba0c65114f58f38276902c63.zip |
Char highlight: convert LO character background to MSO highlighting
DOC export has a good approximating algorithm for that
so use it everywhere.
In RTF case use the default color table which is added
also by MSO Word. With that highlight colors are also added to
the table.
Change-Id: Ie4827a933c316d4dc0c0c7a32d8cf319477d1bf9
Diffstat (limited to 'sw/source/filter/ww8/rtfattributeoutput.cxx')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index ad3cf5e932d1..d8d87428a805 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -2475,7 +2475,7 @@ void RtfAttributeOutput::CharHighlight(const SvxBrushItem& rBrush) if (!rBrush.GetColor().GetTransparency()) { m_aStyles.append(OOO_STRING_SVTOOLS_RTF_HIGHLIGHT); - m_aStyles.append((sal_Int32)m_rExport.GetColor(rBrush.GetColor())); + m_aStyles.append(static_cast<sal_Int32>(msfilter::util::TransColToIco(rBrush.GetColor()))); } } |