Kaydet (Commit) ff209b14 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Avoid needless truncation to int

Change-Id: Ibb9088e73e3e48952ce7f2f4ec42392f7633e8a7
üst 222c94f5
......@@ -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 );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment