diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-02-25 03:40:27 +0530 |
---|---|---|
committer | Pranam Lashkari <lpranam@collabora.com> | 2021-02-25 09:54:20 +0100 |
commit | e469c262e289ad86e3e2fa2857f8388b7b16df47 (patch) | |
tree | 7786d0c193659df9613493048cb23259045706fe /sc | |
parent | 32df5e1fdb1c2fa70c893bd18bcbcf6f26cfabb0 (diff) |
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 <lpranam@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |