diff options
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterTextView.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sdext/source/presenter/PresenterTextView.cxx b/sdext/source/presenter/PresenterTextView.cxx index 310427e13ab9..8c426aa86ce5 100644 --- a/sdext/source/presenter/PresenterTextView.cxx +++ b/sdext/source/presenter/PresenterTextView.cxx @@ -961,11 +961,10 @@ awt::Rectangle PresenterTextParagraph::GetCharacterBounds ( nRight = rLine.mnWidth - nLeft; nLeft = rLine.mnWidth - nOldRight; } - double nTop (nY + rCellBox.Y1); - double nBottom (nY + rCellBox.Y2); + double nTop = nY - mnAscent; + double nBottom; if (bCaretBox) { - nTop = nTop - rCellBox.Y1 - mnAscent; nBottom = nTop + mnLineHeight; if (nCellIndex >= rLine.maCellBoxes.getLength()) nLeft = nRight-2; @@ -975,7 +974,6 @@ awt::Rectangle PresenterTextParagraph::GetCharacterBounds ( } else { - nTop = nTop - rCellBox.Y1 - mnAscent; nBottom = nTop + mnAscent + mnDescent; } const sal_Int32 nX1 = sal_Int32(floor(nLeft)); |