summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2016-01-19 15:11:57 -0400
committerHenry Castro <hcastro@collabora.com>2016-01-19 20:03:54 -0400
commit33619948835d8b9522cf7240125f8018c50a437d (patch)
tree32fbe4314ba8ed1390436b23e3699540e6ef3a0f /sc
parent95060d44300d8866fa81c16fc8fe2afe22d63777 (diff)
sc lokit: the visible row/column must be 0, when loading a document
Change-Id: Ie980e0bb0726dd8bc4215d5b23ac6e1d2c9e2719 Reviewed-on: https://gerrit.libreoffice.org/21611 Reviewed-by: Henry Castro <hcastro@collabora.com> Tested-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewdata.cxx13
1 files changed, 9 insertions, 4 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 85fc81a31b37..290bb461992c 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -171,6 +171,7 @@ void ScViewDataTable::ReadUserDataSequence(const uno::Sequence <beans::PropertyV
sal_Int32 nTempPosHTw(0);
bool bHasVSplitInTwips = false;
bool bHasHSplitInTwips = false;
+ bool bIsTiledRendering = comphelper::LibreOfficeKit::isActive();
for (sal_Int32 i = 0; i < nCount; i++)
{
OUString sName(aSettings[i].Name);
@@ -222,22 +223,26 @@ void ScViewDataTable::ReadUserDataSequence(const uno::Sequence <beans::PropertyV
else if (sName == SC_POSITIONLEFT)
{
aSettings[i].Value >>= nTemp32;
- nPosX[SC_SPLIT_LEFT] = SanitizeCol( static_cast<SCCOL>(nTemp32));
+ nPosX[SC_SPLIT_LEFT] = bIsTiledRendering ? 0 :
+ SanitizeCol( static_cast<SCCOL>(nTemp32));
}
else if (sName == SC_POSITIONRIGHT)
{
aSettings[i].Value >>= nTemp32;
- nPosX[SC_SPLIT_RIGHT] = SanitizeCol( static_cast<SCCOL>(nTemp32));
+ nPosX[SC_SPLIT_RIGHT] = bIsTiledRendering ? 0 :
+ SanitizeCol( static_cast<SCCOL>(nTemp32));
}
else if (sName == SC_POSITIONTOP)
{
aSettings[i].Value >>= nTemp32;
- nPosY[SC_SPLIT_TOP] = SanitizeRow( static_cast<SCROW>(nTemp32));
+ nPosY[SC_SPLIT_TOP] = bIsTiledRendering ? 0 :
+ SanitizeRow( static_cast<SCROW>(nTemp32));
}
else if (sName == SC_POSITIONBOTTOM)
{
aSettings[i].Value >>= nTemp32;
- nPosY[SC_SPLIT_BOTTOM] = SanitizeRow( static_cast<SCROW>(nTemp32));
+ nPosY[SC_SPLIT_BOTTOM] = bIsTiledRendering ? 0 :
+ SanitizeRow( static_cast<SCROW>(nTemp32));
}
else if (sName == SC_ZOOMTYPE)
{