diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-04-18 14:42:22 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-04-18 15:54:05 +0200 |
commit | 3d4fef85d05269e613316a7af6245f05d207d76e (patch) | |
tree | 3d33fa69ee57089ca91f34845187ead3f5aad871 /writerfilter | |
parent | Boy, I forgot to add this one (diff) | |
download | core-3d4fef85d05269e613316a7af6245f05d207d76e.tar.gz core-3d4fef85d05269e613316a7af6245f05d207d76e.zip |
fdo#63023 incorrect RTF background color in header
Change-Id: I33f5c8a856206860ac9cdb23dd6b5222cb785bf7
Diffstat (limited to 'writerfilter')
-rw-r--r-- | writerfilter/source/rtftok/rtfdocumentimpl.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx index f1268f546d50..8d88a27052b3 100644 --- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx +++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx @@ -578,9 +578,14 @@ void RTFDocumentImpl::seek(sal_uInt32 nPos) sal_uInt32 RTFDocumentImpl::getColorTable(sal_uInt32 nIndex) { - if (nIndex < m_aColorTable.size()) - return m_aColorTable[nIndex]; - return 0; + if (!m_pSuperstream) + { + if (nIndex < m_aColorTable.size()) + return m_aColorTable[nIndex]; + return 0; + } + else + return m_pSuperstream->getColorTable(nIndex); } rtl_TextEncoding RTFDocumentImpl::getEncoding(sal_uInt32 nFontIndex) |