summaryrefslogtreecommitdiff
path: root/sw/inc/view.hxx
diff options
context:
space:
mode:
authortagezi <lera.goncharuk@gmail.com>2017-12-07 22:27:21 +0200
committerMichael Stahl <mstahl@redhat.com>2017-12-11 22:02:48 +0100
commitbaadb184e84568acd1c6efda95c3715b05818da3 (patch)
treeda662ed1115c4b527bd5c67690ef0e738087b818 /sw/inc/view.hxx
parent09815cf40fad561991bec4bea15b3f677c937b02 (diff)
tdf#96505 Deleted suffix long (L) where it is possible
Change-Id: Iafe5ea3822f7f0170d2fb041fea604e95dbfa015 Reviewed-on: https://gerrit.libreoffice.org/46041 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sw/inc/view.hxx')
-rw-r--r--sw/inc/view.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx
index a865b4184ee5..6e8f4b7d9511 100644
--- a/sw/inc/view.hxx
+++ b/sw/inc/view.hxx
@@ -643,12 +643,12 @@ public:
inline long SwView::GetXScroll() const
{
- return m_aVisArea.GetWidth() * nScrollX / 100L;
+ return (m_aVisArea.GetWidth() * nScrollX) / 100;
}
inline long SwView::GetYScroll() const
{
- return m_aVisArea.GetHeight() * nScrollY / 100L;
+ return (m_aVisArea.GetHeight() * nScrollY) / 100;
}
inline const SwDocShell *SwView::GetDocShell() const