summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfdocumentimpl.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2013-04-18 14:42:22 +0200
committerMiklos Vajna <vmiklos@suse.cz>2013-04-18 15:54:05 +0200
commit3d4fef85d05269e613316a7af6245f05d207d76e (patch)
tree3d33fa69ee57089ca91f34845187ead3f5aad871 /writerfilter/source/rtftok/rtfdocumentimpl.cxx
parent85f88a20b44a8c4742a6fdd6263e31cf023cfc36 (diff)
fdo#63023 incorrect RTF background color in header
Change-Id: I33f5c8a856206860ac9cdb23dd6b5222cb785bf7
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx11
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)