summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Seidel <mseidel@apache.org>2018-12-02 11:33:56 +0000
committerMatthias Seidel <mseidel@apache.org>2018-12-02 11:33:56 +0000
commit2463de78beeff993952e2950aa7dceeed050aaac (patch)
tree538879682cb83e6f017a0accbd63e5d414dea271
parent5bab9af0eef386978f073ca04a2e478b157aee63 (diff)
i123192 - Word Count Dialog: last digit truncated at the right
Patch by: hanya Thank you for your contribution!
Notes
Notes: ignore: obsolete
-rw-r--r--vcl/source/gdi/outdev3.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index 2657f23e4970..3b9f42a135a3 100644
--- a/vcl/source/gdi/outdev3.cxx
+++ b/vcl/source/gdi/outdev3.cxx
@@ -6792,10 +6792,10 @@ Rectangle OutputDevice::GetTextRect( const Rectangle& rRect,
else if ( nStyle & TEXT_DRAW_CENTER )
{
aRect.Left() += (nWidth-nMaxWidth)/2;
- aRect.Right() = aRect.Left()+nMaxWidth-1;
+ aRect.Right() = aRect.Left()+nMaxWidth;
}
else
- aRect.Right() = aRect.Left()+nMaxWidth-1;
+ aRect.Right() = aRect.Left()+nMaxWidth;
if ( nStyle & TEXT_DRAW_BOTTOM )
aRect.Top() = aRect.Bottom()-(nTextHeight*nLines)+1;
@@ -6807,7 +6807,6 @@ Rectangle OutputDevice::GetTextRect( const Rectangle& rRect,
else
aRect.Bottom() = aRect.Top()+(nTextHeight*nLines)-1;
- aRect.Right()++; // #99188# get rid of rounding problems when using this rect later
return aRect;
}