diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-01-28 13:45:32 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-04-16 23:06:55 +0200 |
commit | 8f91f1bc16147a931469873b1a9f41ba9da1c73d (patch) | |
tree | 48b69555e3f0daf4faa0603baed3fd810a81dcac | |
parent | d023ced283c98c8a1b36115eb6a59aeeb4847f3f (diff) |
tdf#80960: Attempt to fix the cursor placement after document load.
This is a blind attempt - don't have a 32bit system at hand to really try it.
Change-Id: I4fe8c65b794d01e79aa93cbac440f710b630c7dd
Reviewed-on: https://gerrit.libreoffice.org/15131
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r-- | sw/source/uibase/uiview/view.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx index 358937f267cb..c3d3f2a6cf26 100644 --- a/sw/source/uibase/uiview/view.cxx +++ b/sw/source/uibase/uiview/view.cxx @@ -1254,8 +1254,8 @@ void SwView::ReadUserDataSequence ( const uno::Sequence < beans::PropertyValue > const Rectangle &rVis = GetVisArea(); const SwViewOption* pVOpt = m_pWrtShell->GetViewOptions(); - long nX = rRect.Left(), nY = rRect.Top(), nLeft = rVis.Left(), nTop = rVis.Top(); - long nRight = bBrowse ? LONG_MIN : rVis.Right(), nBottom = bBrowse ? LONG_MIN : rVis.Bottom(); + sal_Int64 nX = rRect.Left(), nY = rRect.Top(), nLeft = rVis.Left(), nTop = rVis.Top(); + sal_Int64 nRight = bBrowse ? LONG_MIN : rVis.Right(), nBottom = bBrowse ? LONG_MIN : rVis.Bottom(); sal_Int16 nZoomType = static_cast< sal_Int16 >(pVOpt->GetZoomType()); sal_Int16 nZoomFactor = static_cast < sal_Int16 > (pVOpt->GetZoom()); bool bViewLayoutBookMode = pVOpt->IsViewLayoutBookMode(); |