From e469c262e289ad86e3e2fa2857f8388b7b16df47 Mon Sep 17 00:00:00 2001 From: Pranam Lashkari Date: Thu, 25 Feb 2021 03:40:27 +0530 Subject: online: fixed freeze pane not writing correct data on file save problem: when we save the file after setting freeze panes in online, opening same file in Desktop libreoffice will show incorrect view, each freeze view would start from A1 this patch ensures that we write correct starting cell pos for each freeze view Change-Id: Ic8ccd5fb5cbedf2ea4f0e9376f0cfdd530e32d6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111505 Tested-by: Jenkins Reviewed-by: Pranam Lashkari --- sc/source/ui/view/viewdata.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index d6e287f657ab..e47c760390ec 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -4207,7 +4207,10 @@ void ScViewData::OverrideWithLOKFreeze(ScSplitMode& eExHSplitMode, ScSplitMode& eExHSplitMode = SC_SPLIT_FIX; if (eExHSplitMode == SC_SPLIT_FIX) + { nExFixPosX = nFreezeCol; + pThisTab->nPosX[SC_SPLIT_RIGHT] = nFreezeCol; + } else bConvertToScrPosX = true; } @@ -4218,7 +4221,10 @@ void ScViewData::OverrideWithLOKFreeze(ScSplitMode& eExHSplitMode, ScSplitMode& eExVSplitMode = SC_SPLIT_FIX; if (eExVSplitMode == SC_SPLIT_FIX) + { nExFixPosY = nFreezeRow; + pThisTab->nPosY[SC_SPLIT_BOTTOM] = nFreezeRow; + } else bConvertToScrPosY = true; } -- cgit