[Libreoffice-commits] core.git: sc/source

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 25 08:55:02 UTC 2021


 sc/source/ui/view/viewdata.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit e469c262e289ad86e3e2fa2857f8388b7b16df47
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Thu Feb 25 03:40:27 2021 +0530
Commit:     Pranam Lashkari <lpranam at collabora.com>
CommitDate: Thu Feb 25 09:54:20 2021 +0100

    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 at collabora.com>

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;
     }


More information about the Libreoffice-commits mailing list