summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-01-28 13:45:32 +0100
committerJan Holesovsky <kendy@collabora.com>2015-01-28 13:49:09 +0100
commitc99e634e06aa97d9230d9200206e9c2e8e373ed0 (patch)
tree8b859061e96326a9ae275a105c544dea71d56acc
parentfb9e0063d64243ffd56174566b9eda723daf0cb3 (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
-rw-r--r--sw/source/uibase/uiview/view.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/view.cxx b/sw/source/uibase/uiview/view.cxx
index f6a8512e758b..3073f9be61aa 100644
--- a/sw/source/uibase/uiview/view.cxx
+++ b/sw/source/uibase/uiview/view.cxx
@@ -1253,8 +1253,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();