Kaydet (Commit) 122db845 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

n#820504: default color hidden by Default style in writerfilter

Setting the font color of the default paragraph style to Auto makes the
color set in the Writer defaults (from rPrDefault) ignored.

Change-Id: I1dcd92bcd0774f5229785373242899a492ab7b7c
(cherry picked from commit d7acb5ba)
üst 98741a20
...@@ -786,8 +786,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable ) ...@@ -786,8 +786,7 @@ void StyleSheetTable::ApplyStyleSheets( FontTablePtr rFontTable )
pEntry->pProperties->Insert(PROP_PARA_ORPHANS, true, aTwo, false); pEntry->pProperties->Insert(PROP_PARA_ORPHANS, true, aTwo, false);
// Left-to-right direction if not already set // Left-to-right direction if not already set
pEntry->pProperties->Insert(PROP_WRITING_MODE, true, uno::makeAny( sal_Int16(text::WritingMode_LR_TB) ), false); pEntry->pProperties->Insert(PROP_WRITING_MODE, true, uno::makeAny( sal_Int16(text::WritingMode_LR_TB) ), false);
// font color COL_AUTO if not already set // Don't set font color to Auto if not already set: this could hide the default font color setting
pEntry->pProperties->Insert(PROP_CHAR_COLOR, true, uno::makeAny( sal_Int32(0xffffffff) ), false);
} }
uno::Sequence< beans::PropertyValue > aPropValues = pEntry->pProperties->GetPropertyValues(); uno::Sequence< beans::PropertyValue > aPropValues = pEntry->pProperties->GetPropertyValues();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment