diff options
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterTextView.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx index bf2de798a72e..f04ecf715c16 100644 --- a/sdext/source/presenter/PresenterTextView.cxx +++ b/sdext/source/presenter/PresenterTextView.cxx @@ -1186,14 +1186,12 @@ awt::Rectangle PresenterTextParagraph::GetCharacterBounds ( { // Find the line that contains the requested character and accumulate // the previous line heights. - sal_Int32 nFirstCharacterIndex (0); - sal_Int32 nEndCharacterIndex (0); double nX (mnXOrigin); double nY (mnYOrigin + mnVerticalOffset + mnAscent); const sal_Int8 nTextDirection (GetTextDirection()); for (sal_Int32 nLineIndex=0,nLineCount=maLines.size(); nLineIndex<nLineCount; - ++nLineIndex, nFirstCharacterIndex=nEndCharacterIndex, nY+=mnLineHeight) + ++nLineIndex, nY+=mnLineHeight) { Line& rLine (maLines[nLineIndex]); // Skip lines before the indexed character. |