[ooo-build-commit] Branch 'ooo/OOO310' - sw/source

Jan Holesovsky kendy at kemper.freedesktop.org
Fri Jul 31 19:58:14 PDT 2009


 sw/source/core/text/txttab.cxx |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 582db5d7ed1bb4308383528a8ce479faf1345732
Author: Kurt Zenker <kz at openoffice.org>
Date:   Mon Jul 27 22:56:08 2009 +0000

    CWS-TOOLING: integrate CWS sw311bf01
    2009-07-21 17:05:41 +0200 od  r274207 : #i103685# method <SwTxtFormatter::NewTabPortion(..)>
    	  - adjust condition to apply automatic tab stop at left margin correctly
                in case that tab stops are not relative to indent

diff --git a/sw/source/core/text/txttab.cxx b/sw/source/core/text/txttab.cxx
index 5a3ebd0..b299cae 100644
--- a/sw/source/core/text/txttab.cxx
+++ b/sw/source/core/text/txttab.cxx
@@ -254,8 +254,14 @@ SwTabPortion *SwTxtFormatter::NewTabPortion( SwTxtFormatInfo &rInf, bool bAuto )
         // <--
              ( ( bRTL && nCurrentAbsPos > nTabLeft - nForced ) ||
                ( !bRTL && nCurrentAbsPos < nTabLeft + nForced ) ) &&
-             nNextPos > nForced )
-        // <--
+               // --> OD 2009-07-21 #i103685#
+               //  adjust condition:
+               // - back to pre OOo 3.0 condition, if tab stops are relative to indent
+               // - further checks needed, if tab stops are not relative to indent
+               ( nNextPos > 0 &&
+               ( bTabsRelativeToIndent ||
+                 ( !pTabStop || nNextPos > nForced ) ) ) )
+               // <--
         {
             eAdj = SVX_TAB_ADJUST_DEFAULT;
             cFill = 0;


More information about the ooo-build-commit mailing list