Kaydet (Commit) b8b05478 authored tarafından Muthu Subramanian's avatar Muthu Subramanian

n#759180: Override properties with endParaPr.

This is done only for empty textruns.
üst ed011e49
......@@ -92,8 +92,13 @@ void TextParagraph::insertAt(
{
for( TextRunVector::const_iterator aIt = maRuns.begin(), aEnd = maRuns.end(); aIt != aEnd; ++aIt )
{
sal_Int32 nLen = (*aIt)->getText().getLength();
// n#759180: Force use, maEndProperties for the last segment
// This is currently applied to only empty runs
if( !nLen && ( ( aIt + 1 ) == aEnd ) )
(*aIt)->getTextCharacterProperties().assignUsed( maEndProperties );
nCharHeight = std::max< sal_Int32 >( nCharHeight, (*aIt)->insertAt( rFilterBase, xText, xAt, aTextCharacterStyle ) );
nParagraphSize += (*aIt)->getText().getLength();
nParagraphSize += nLen;
}
}
xAt->gotoEnd( sal_True );
......
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