summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-07-30 16:21:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-07-30 16:21:55 +0200
commitff209b1446c7923c9e8675611a392c9d280d1440 (patch)
tree776ba60fd93e852c0e0cf44bd1b104a4df076572 /vcl
parentAdapt loplugin:derefnullptr to old Clang versions (diff)
downloadcore-ff209b1446c7923c9e8675611a392c9d280d1440.tar.gz
core-ff209b1446c7923c9e8675611a392c9d280d1440.zip
Avoid needless truncation to int
Change-Id: Ibb9088e73e3e48952ce7f2f4ec42392f7633e8a7
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/outdev/textline.cxx4
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 );
}
}