diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-07-30 16:21:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-07-30 16:21:55 +0200 |
commit | ff209b1446c7923c9e8675611a392c9d280d1440 (patch) | |
tree | 776ba60fd93e852c0e0cf44bd1b104a4df076572 /vcl | |
parent | 222c94f5a40a8bb4134b31ed6dbfb5e3913197a6 (diff) |
Avoid needless truncation to int
Change-Id: Ibb9088e73e3e48952ce7f2f4ec42392f7633e8a7
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/outdev/textline.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx index 4e0add03d7e5..5cf597823fbd 100644 --- a/vcl/source/outdev/textline.cxx +++ b/vcl/source/outdev/textline.cxx @@ -792,8 +792,8 @@ void OutputDevice::ImplDrawTextLines( SalLayout& rSalLayout, FontStrikeout eStri else { Point aStartPt = rSalLayout.GetDrawPosition(); - int nWidth = rSalLayout.GetTextWidth() / rSalLayout.GetUnitsPerPixel(); - ImplDrawTextLine( aStartPt.X(), aStartPt.Y(), 0, nWidth, + ImplDrawTextLine( aStartPt.X(), aStartPt.Y(), 0, + rSalLayout.GetTextWidth() / rSalLayout.GetUnitsPerPixel(), eStrikeout, eUnderline, eOverline, bUnderlineAbove ); } } |