Kaydet (Commit) f277d0c8 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Correctly handle empty paragraphs in slideshow animation fdo#43684

Fix a problem with empty paragraphs, that previously did not get
proper end-of-para / end-of-line markup, thus the slideshow mis-
counting them when getting index-based animation targets.
üst feb1a671
...@@ -3455,6 +3455,27 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta ...@@ -3455,6 +3455,27 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta
aOverlineColor, aTextLineColor); aOverlineColor, aTextLineColor);
} }
} }
else if ( bStripOnly )
{
// #i108052# When stripping, a callback for _empty_ paragraphs is also needed.
// This was optimized away (by not rendering the space-only tab portion), so do
// it manually here.
const bool bEndOfLine(y == pLine->GetEndPortion());
const bool bEndOfParagraph(bEndOfLine && nLine + 1 == nLines);
const Color aOverlineColor(pOutDev->GetOverlineColor());
const Color aTextLineColor(pOutDev->GetTextLineColor());
GetEditEnginePtr()->DrawingText(
aTmpPos, String(), 0, 0, 0,
aTmpFont, n, nIndex, 0,
0,
0,
bEndOfLine, bEndOfParagraph, false,
0,
aOverlineColor,
aTextLineColor);
}
} }
break; break;
} }
......
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