Kaydet (Commit) 9d40293f authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Thorsten Behrens

aw084: #i108052# Added code to mimic old behaviour and call user layout link…

aw084: #i108052# Added code to mimic old behaviour and call user layout link when empty paragraph is rendered

# HG changeset patch
# User Armin Le Grand <armin.le.grand@oracle.com>
# Date 1300894213 -3600
# Node ID 773a354b3c4694565fa5ef4588c21c6b2b2eed7f
# Parent  1e5618c51d1690a7c619f75d6b79c220c39854f8
aw084: #i108052# Added code to mimic old behaviour and call user layout link when empty paragraph is rendered
üst ef4066bb
......@@ -2911,6 +2911,27 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta
// Over the Portions of the line ...
// --------------------------------------------------
sal_uInt16 nIndex = pLine->GetStart();
// #i108052# When stripping a callback for empty paragraphs is needed. This
// was somehow lost/removed/killed by making the TextPortions with empty
// paragraph to type PORTIONKIND_TAB instead of PORTIONKIND_TEXT. Adding here
// since I could not find out who and why this has changed.
if(bStripOnly && pLine->GetStartPortion() == pLine->GetEndPortion())
{
const Color aOverlineColor(pOutDev->GetOverlineColor());
const Color aTextLineColor(pOutDev->GetTextLineColor());
GetEditEnginePtr()->DrawingText(
aTmpPos, String(), 0, 0, 0,
aTmpFont, n, nIndex, 0,
0,
0,
false, true, false, // support for EOL/EOP TEXT comments
0,
aOverlineColor,
aTextLineColor);
}
for ( sal_uInt16 y = pLine->GetStartPortion(); y <= pLine->GetEndPortion(); y++ )
{
DBG_ASSERT( pPortion->GetTextPortions().Count(), "Line without Textportion in Paint!" );
......
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