summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat.ooo@free.fr>2012-02-10 21:57:54 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2012-02-14 12:43:13 +0100
commit042e3727babc62913c753594412e7d7efbed43bf (patch)
tree38ea2e65bda4e5ac28a6188e4ebf4664076cd167
parent4c36086e3a8b546d906e0dd9f0472abd7013852e (diff)
fdo#45908: Cleaning up the tabs too early can cause loops
Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
-rw-r--r--sw/source/core/text/itrform2.cxx5
-rw-r--r--sw/source/core/text/txttab.cxx4
2 files changed, 2 insertions, 7 deletions
diff --git a/sw/source/core/text/itrform2.cxx b/sw/source/core/text/itrform2.cxx
index 78dd1f13da..c7a6cbe4ba 100644
--- a/sw/source/core/text/itrform2.cxx
+++ b/sw/source/core/text/itrform2.cxx
@@ -1383,9 +1383,8 @@ SwLinePortion *SwTxtFormatter::NewPortion( SwTxtFormatInfo &rInf )
}
}
- // Wenn eine Portion erzeugt wird, obwohl eine RestPortion ansteht,
- // dann haben wir es mit einem Feld zu tun, das sich aufgesplittet
- // hat, weil z.B. ein Tab enthalten ist.
+ // if a portion is created despite there being a pending RestPortion,
+ // then it is a field which has been split (e.g. because it contains a Tab)
if( pPor && rInf.GetRest() )
pPor->SetLen( 0 );
diff --git a/sw/source/core/text/txttab.cxx b/sw/source/core/text/txttab.cxx
index 5b77142fab..d3f4e8c8ee 100644
--- a/sw/source/core/text/txttab.cxx
+++ b/sw/source/core/text/txttab.cxx
@@ -85,10 +85,6 @@ sal_uInt16 SwLineInfo::NumberOfTabStops() const
SwTabPortion *SwTxtFormatter::NewTabPortion( SwTxtFormatInfo &rInf, bool bAuto ) const
{
SwTabPortion *pTabPor = 0;
- SwTabPortion *pLastTab = rInf.GetLastTab();
- if( pLastTab && ( pLastTab->IsTabCntPortion() || pLastTab->IsTabDecimalPortion() ) )
- if( pLastTab->PostFormat( rInf ) )
- return 0;
xub_Unicode cFill = 0;
xub_Unicode cDec = 0;