[Libreoffice-commits] core.git: sw/source

Johnny_M klasse at partyheld.de
Tue Mar 13 12:08:13 UTC 2018


 sw/source/core/doc/doctxm.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 31031cdc07614ada5c47f9467e6cc115241c537c
Author: Johnny_M <klasse at partyheld.de>
Date:   Sat Mar 10 11:12:59 2018 +0100

    Translate German variable names
    
    Akt -> Current in doctxm
    
    Change-Id: I45c99d61047b4a45af27ab1da61969b1ddfa54db
    Reviewed-on: https://gerrit.libreoffice.org/51028
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index a5250bfd8463..621f540c0e00 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -120,21 +120,21 @@ sal_uInt16 SwDoc::GetCurTOXMark( const SwPosition& rPos,
     sal_Int32 nSttIdx;
     const sal_Int32 *pEndIdx;
 
-    const sal_Int32 nAktPos = rPos.nContent.GetIndex();
+    const sal_Int32 nCurrentPos = rPos.nContent.GetIndex();
 
     for( size_t n = 0; n < rHts.Count(); ++n )
     {
         const SwTextAttr* pHt = rHts.Get(n);
         if( RES_TXTATR_TOXMARK != pHt->Which() )
             continue;
-        if( ( nSttIdx = pHt->GetStart() ) < nAktPos )
+        if( ( nSttIdx = pHt->GetStart() ) < nCurrentPos )
         {
             // also check the end
             if( nullptr == ( pEndIdx = pHt->End() ) ||
-                *pEndIdx <= nAktPos )
+                *pEndIdx <= nCurrentPos )
                 continue;       // keep searching
         }
-        else if( nSttIdx > nAktPos )
+        else if( nSttIdx > nCurrentPos )
             // If Hint's Start is greater than rPos, break, because
             // the attributes are sorted by Start!
             break;


More information about the Libreoffice-commits mailing list