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 ...@@ -792,8 +792,8 @@ void OutputDevice::ImplDrawTextLines( SalLayout& rSalLayout, FontStrikeout eStri
else else
{ {
Point aStartPt = rSalLayout.GetDrawPosition(); Point aStartPt = rSalLayout.GetDrawPosition();
int nWidth = rSalLayout.GetTextWidth() / rSalLayout.GetUnitsPerPixel(); ImplDrawTextLine( aStartPt.X(), aStartPt.Y(), 0,
ImplDrawTextLine( aStartPt.X(), aStartPt.Y(), 0, nWidth, rSalLayout.GetTextWidth() / rSalLayout.GetUnitsPerPixel(),
eStrikeout, eUnderline, eOverline, bUnderlineAbove ); 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