Kaydet (Commit) 55c63ccf authored tarafından Jan Holesovsky's avatar Jan Holesovsky

bnc#758621: Set the attribs for the entire para if a placeholder.

Setting attributes for empty paragraphs does nothing, we have to apply it to
the style directly.

Change-Id: Id2a63c961e408906fa7c6457091405692262c6b7
üst cd086e94
......@@ -2288,6 +2288,14 @@ SdrObject* SdrPowerPointImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj*
}
pPortion->ApplyTo( aPortionAttribs, (SdrPowerPointImport&)*this, nDestinationInstance, pTextObj );
rOutliner.QuickSetAttribs( aPortionAttribs, aSelection );
// set the attribs for the entire paragraph, if it is a placeholder
if ( pTextObj->GetOEPlaceHolderAtom() && aSelection.nStartPos == aSelection.nEndPos )
{
SfxItemSet& rItemSet = rOutliner.GetStyleSheet( nParaIndex )->GetItemSet();
pPortion->ApplyTo( rItemSet, (SdrPowerPointImport&)*this, nDestinationInstance, pTextObj );
}
aSelection.nStartPos = aSelection.nEndPos;
}
boost::optional< sal_Int16 > oStartNumbering;
......
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