diff options
Diffstat (limited to 'filter/source/msfilter/svdfppt.cxx')
-rw-r--r-- | filter/source/msfilter/svdfppt.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/msfilter/svdfppt.cxx b/filter/source/msfilter/svdfppt.cxx index f7ef3675a03d..ff39d8a9ffff 100644 --- a/filter/source/msfilter/svdfppt.cxx +++ b/filter/source/msfilter/svdfppt.cxx @@ -5756,14 +5756,14 @@ void PPTPortionObj::ApplyTo( SfxItemSet& rSet, SdrPowerPointImport& rManager, T break; default: break; } - rSet.Put( SvxColorItem( aDefColor, EE_CHAR_COLOR ) ); + rSet.Put( SvxColorItem( aDefColor, ColorSets::getColorSetsFromItemSet(rSet), EE_CHAR_COLOR ) ); } else { if ( GetAttrib( PPT_CharAttr_FontColor, nVal, nDestinationInstance ) ) // text color (4Byte-Arg) { Color aCol( rManager.MSO_TEXT_CLR_ToColor( nVal ) ); - rSet.Put( SvxColorItem( aCol, EE_CHAR_COLOR ) ); + rSet.Put(SvxColorItem(aCol, ColorSets::getColorSetsFromItemSet(rSet), EE_CHAR_COLOR)); if ( nDestinationInstance == TSS_Type::Unknown ) mrStyleSheet.mpCharSheet[ mnInstance ]->maCharLevel[ mnDepth ].mnFontColorInStyleSheet = aCol; } @@ -5772,7 +5772,7 @@ void PPTPortionObj::ApplyTo( SfxItemSet& rSet, SdrPowerPointImport& rManager, T Color aCol( rManager.MSO_TEXT_CLR_ToColor( nVal ) ); Color& aColorInSheet = mrStyleSheet.mpCharSheet[ mnInstance ]->maCharLevel[ mnDepth ].mnFontColorInStyleSheet; if ( aColorInSheet != aCol ) - rSet.Put( SvxColorItem( aCol, EE_CHAR_COLOR ) ); + rSet.Put( SvxColorItem( aCol, ColorSets::getColorSetsFromItemSet(rSet), EE_CHAR_COLOR ) ); } } |