[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sc/source

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Thu Feb 18 16:35:59 UTC 2021


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

New commits:
commit 95c9eaa43daf823bffb3365ec57ff2f15dff77eb
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Thu Feb 18 20:19:57 2021 +0530
Commit:     Jan Holesovsky <kendy at collabora.com>
CommitDate: Thu Feb 18 17:35:09 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/+/111131
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Dennis Francis <dennis.francis at collabora.com>

diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index e98378fa853f..a1ff8bc20051 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -4221,7 +4221,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;
     }
@@ -4232,7 +4235,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