summaryrefslogtreecommitdiff
path: root/editeng/source/rtf
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source/rtf')
-rw-r--r--editeng/source/rtf/svxrtf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx
index 67bc1ce7bfe5..6c4ff8b887df 100644
--- a/editeng/source/rtf/svxrtf.cxx
+++ b/editeng/source/rtf/svxrtf.cxx
@@ -414,7 +414,7 @@ void SvxRTFParser::ReadColorTable()
Color* pColor = new Color( nRed, nGreen, nBlue );
if( aColorTbl.empty() &&
sal_uInt8(-1) == nRed && sal_uInt8(-1) == nGreen && sal_uInt8(-1) == nBlue )
- pColor->SetColor( COL_AUTO );
+ *pColor = COL_AUTO;
aColorTbl.push_back( pColor );
nRed = 0;
nGreen = 0;