diff options
author | Armin Le Grand <armin.le.grand@oracle.com> | 2011-12-03 19:47:30 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-12-05 13:00:13 +0100 |
commit | 9d40293f147212120ce2a2e960c1ef23168a428b (patch) | |
tree | 739235ee6ba4965e18f2f6f79ed7b9bb18d2a763 /editeng | |
parent | ef4066bb19a2c139261d6be6ceb1a98c37ece2d1 (diff) |
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
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 7c0ae4914c99..6f8cd9309d1c 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -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!" ); |