diff options
author | Johnny_M <klasse@partyheld.de> | 2018-03-24 21:07:13 +0100 |
---|---|---|
committer | Bartosz Kosiorek <gang65@poczta.onet.pl> | 2018-03-28 18:13:16 +0200 |
commit | 89c4a6a385d489e08345135ac3ec81220e0ce9bd (patch) | |
tree | 88d6dc4e54463ac07b9503c8d84db1849fe2a760 /sw/source/ui/table | |
parent | 0562808a7ef1fe3ee6ae094bb120e0be84e67856 (diff) |
Translate German variable names
Akt -> Current in table
Change-Id: I108136bd79dcc603649c996ecd58c74d67d7dab9
Reviewed-on: https://gerrit.libreoffice.org/51805
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
Diffstat (limited to 'sw/source/ui/table')
-rw-r--r-- | sw/source/ui/table/tabledlg.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/ui/table/tabledlg.cxx b/sw/source/ui/table/tabledlg.cxx index 3c99d5bfc0f8..52da54c14c00 100644 --- a/sw/source/ui/table/tabledlg.cxx +++ b/sw/source/ui/table/tabledlg.cxx @@ -982,7 +982,7 @@ void SwTableColumnPage::ModifyHdl( MetricField const * pField ) UpdateCols( aValueTable[i] ); } -void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) +void SwTableColumnPage::UpdateCols( sal_uInt16 nCurrentPos ) { SwTwips nSum = 0; @@ -1001,9 +1001,9 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) sal_uInt16 nLoopCount = 0; while( nDiff ) { - if( ++nAktPos == nNoOfVisibleCols) + if( ++nCurrentPos == nNoOfVisibleCols) { - nAktPos = 0; + nCurrentPos = 0; ++nLoopCount; //#i101353# in small tables it might not be possible to balance column width if( nLoopCount > 1 ) @@ -1011,25 +1011,25 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) } if( nDiff < 0 ) { - SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); + SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) -nDiff); nDiff = 0; } - else if( GetVisibleWidth(nAktPos) >= nDiff + nMinWidth ) + else if( GetVisibleWidth(nCurrentPos) >= nDiff + nMinWidth ) { - SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); + SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) -nDiff); nDiff = 0; } - if( nDiff > 0 && GetVisibleWidth(nAktPos) > nMinWidth ) + if( nDiff > 0 && GetVisibleWidth(nCurrentPos) > nMinWidth ) { - if( nDiff >= (GetVisibleWidth(nAktPos) - nMinWidth) ) + if( nDiff >= (GetVisibleWidth(nCurrentPos) - nMinWidth) ) { - nDiff -= (GetVisibleWidth(nAktPos) - nMinWidth); - SetVisibleWidth(nAktPos, nMinWidth); + nDiff -= (GetVisibleWidth(nCurrentPos) - nMinWidth); + SetVisibleWidth(nCurrentPos, nMinWidth); } else { nDiff = 0; - SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) -nDiff); + SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) -nDiff); } OSL_ENSURE(nDiff >= 0, "nDiff < 0 cannot be here!"); } @@ -1044,7 +1044,7 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) if(nDiff > nActSpace) { nTableWidth = pTableData->GetSpace(); - SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) - nDiff + nActSpace ); + SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) - nDiff + nActSpace ); } else { @@ -1060,13 +1060,13 @@ void SwTableColumnPage::UpdateCols( sal_uInt16 nAktPos ) if(nDiff * nNoOfVisibleCols > pTableData->GetSpace() - nTableWidth) { nAdd = (pTableData->GetSpace() - nTableWidth) / nNoOfVisibleCols; - SetVisibleWidth(nAktPos, GetVisibleWidth(nAktPos) - nDiff + nAdd ); + SetVisibleWidth(nCurrentPos, GetVisibleWidth(nCurrentPos) - nDiff + nAdd ); nDiff = nAdd; } if(nAdd) for( sal_uInt16 i = 0; i < nNoOfVisibleCols; i++ ) { - if(i == nAktPos) + if(i == nCurrentPos) continue; SwTwips nVisWidth; if((nVisWidth = GetVisibleWidth(i)) + nDiff < MINLAY) |