summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2011-12-21 02:18:38 +0100
committerThorsten Behrens <tbehrens@suse.com>2011-12-22 23:52:05 +0100
commitfe1998c194f038c1e20ae6482c2a8d970f66a258 (patch)
treeb94fa85a14591c8d74a6c2e4fa0179a19a640297 /editeng
parent854dc02f0822511a9a3c17667f4fe992069dd919 (diff)
Revert "aw084: #i108052# Added code to mimic old behaviour and call user layout link when empty paragraph is rendered"
This reverts commit 9d40293f147212120ce2a2e960c1ef23168a428b. The change was causing extra paragraph markers to be emitted, e.g. leading to fdo#43837 and fdo#43684.
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/impedit3.cxx21
1 files changed, 0 insertions, 21 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index 6f8cd9309d1c..7c0ae4914c99 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -2911,27 +2911,6 @@ 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!" );