diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2013-02-25 20:13:37 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-02-25 20:56:15 +0100 |
commit | 455836cd81c0ca919016a4b415205ce21fad3612 (patch) | |
tree | f98e36018000edb01ee08e2b8539d43a533bc10c /editeng | |
parent | dd3e879cfdacbc8b9fff7556ae2d8698a22e9235 (diff) |
Rename loop variable in ImpEditEngine::Paint
This had nothing to do with y coordinates.
Change-Id: I36baf05cd4c4a67b24574f6651b1c3f1eb12e22e
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit3.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx index 48b25f79c6d2..86d2a8856490 100644 --- a/editeng/source/editeng/impedit3.cxx +++ b/editeng/source/editeng/impedit3.cxx @@ -2976,13 +2976,13 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta aTextLineColor); } - for ( sal_uInt16 y = pLine->GetStartPortion(); y <= pLine->GetEndPortion(); y++ ) + for ( sal_uInt16 nPortion = pLine->GetStartPortion(); nPortion <= pLine->GetEndPortion(); nPortion++ ) { DBG_ASSERT( pPortion->GetTextPortions().Count(), "Line without Textportion in Paint!" ); - const TextPortion* pTextPortion = pPortion->GetTextPortions()[y]; + const TextPortion* pTextPortion = pPortion->GetTextPortions()[nPortion]; DBG_ASSERT( pTextPortion, "NULL-Pointer in Portion iterator in UpdateViews" ); - long nPortionXOffset = GetPortionXOffset( pPortion, pLine, y ); + long nPortionXOffset = GetPortionXOffset( pPortion, pLine, nPortion ); if ( !IsVertical() ) { aTmpPos.X() = aStartPos.X() + nPortionXOffset; @@ -3306,7 +3306,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta const lang::Locale aLocale(GetLocale(EditPaM(pPortion->GetNode(), nIndex + 1))); // create EOL and EOP bools - const bool bEndOfLine(y == pLine->GetEndPortion()); + const bool bEndOfLine(nPortion == pLine->GetEndPortion()); const bool bEndOfParagraph(bEndOfLine && nLine + 1 == nLines); // get Overline color (from ((const SvxOverlineItem*)GetItem())->GetColor() in @@ -3537,7 +3537,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta if ( bStripOnly ) { // create EOL and EOP bools - const bool bEndOfLine(y == pLine->GetEndPortion()); + const bool bEndOfLine(nPortion == pLine->GetEndPortion()); const bool bEndOfParagraph(bEndOfLine && nLine + 1 == nLines); const Color aOverlineColor(pOutDev->GetOverlineColor()); @@ -3557,7 +3557,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta // #i108052# When stripping, a callback for _empty_ paragraphs is also needed. // This was optimized away (by not rendering the space-only tab portion), so do // it manually here. - const bool bEndOfLine(y == pLine->GetEndPortion()); + const bool bEndOfLine(nPortion == pLine->GetEndPortion()); const bool bEndOfParagraph(bEndOfLine && nLine + 1 == nLines); const Color aOverlineColor(pOutDev->GetOverlineColor()); @@ -3577,7 +3577,7 @@ void ImpEditEngine::Paint( OutputDevice* pOutDev, Rectangle aClipRec, Point aSta break; } if( bParsingFields ) - y--; + nPortion--; else nIndex = nIndex + pTextPortion->GetLen(); |