diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-06 09:14:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-06 14:08:58 +0100 |
commit | 58ff30d1a1b9404255bb0dbca5ed52e8355292a4 (patch) | |
tree | 7fe3717132e4640d3ee2571c27812ebd0cbf2e96 /sdext | |
parent | d73cee7858edc04944578f52a6d838d866aafb61 (diff) |
convert to floating point before divide
Change-Id: I0328ca6594b3809210ea124dcb744bad3b5eb92e
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterHelpView.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sdext/source/presenter/PresenterHelpView.cxx b/sdext/source/presenter/PresenterHelpView.cxx index c7a429cc3644..7152b9a0db0d 100644 --- a/sdext/source/presenter/PresenterHelpView.cxx +++ b/sdext/source/presenter/PresenterHelpView.cxx @@ -291,8 +291,8 @@ void PresenterHelpView::Paint (const awt::Rectangle& rUpdateBox) PresenterCanvasHelper::SetDeviceColor(aRenderState, mpFont->mnColor); mxCanvas->drawLine( - geometry::RealPoint2D((double)(aWindowBox.Width/2), gnVerticalBorder), - geometry::RealPoint2D((double)(aWindowBox.Width/2), mnSeparatorY - gnVerticalBorder), + geometry::RealPoint2D((aWindowBox.Width/2.0), gnVerticalBorder), + geometry::RealPoint2D((aWindowBox.Width/2.0), mnSeparatorY - gnVerticalBorder), aViewState, aRenderState); |