sc/source/ui/unoobj/docuno.cxx     |    1 +
 sd/source/ui/docshell/docshel2.cxx |   12 ++++++++++++
 2 files changed, 13 insertions(+)

New commits:
commit 1cbed7b598c39bd715ad98b12f78f67312841909
Author:     Gökay Şatır <gokaysa...@collabora.com>
AuthorDate: Tue Jan 7 11:14:10 2025 +0300
Commit:     Gökay ŞATIR <gokaysa...@gmail.com>
CommitDate: Thu Feb 13 07:38:22 2025 +0100

    Online Calc: Update view pos after setting the client zoom.
    
    Issue: If user zooms in/out while editing is active, the edited area is 
misplaced and tiles are rendering wrong.
    
    Signed-off-by: Gökay Şatır <gokaysa...@collabora.com>
    Change-Id: Ib9ec8237da52363bffcf586b85a1bd041785c693
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179857
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Marco Cecchetti <marco.cecche...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180513
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181481
    Tested-by: Jenkins

diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 06e8f47a6b9c..eed37d2dd8c5 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -1103,6 +1103,7 @@ void ScModelObj::setClientZoom(int nTilePixelWidth_, int 
nTilePixelHeight_, int
         pHdl->SetRefScale(pViewData->GetZoomX(), pViewData->GetZoomY());
 
     // refresh our view's take on other view's cursors & selections
+    pViewData->GetActiveWin()->UpdateEditViewPos();
     pViewData->GetActiveWin()->updateKitOtherCursors();
     pViewData->GetActiveWin()->updateOtherKitSelections();
 
commit d7d05bb3136ac60fc1cb1410f15fdbc856c14d90
Author:     Gökay Şatır <gokaysa...@collabora.com>
AuthorDate: Thu Jan 9 18:14:08 2025 +0300
Commit:     Gökay ŞATIR <gokaysa...@gmail.com>
CommitDate: Thu Feb 13 07:38:08 2025 +0100

    cool#10967: LOK Impress: Invalidate tiles on switching the view mode.
    
    Issue:
    * Select second slide (some slide other than the first one).
    * Switch to notes view.
    * Switch back to normal view.
    * Edit textbox content.
    * Switch to notes view again.
    * Notice that the preview in notes view is not updated.
    
    Reason:
    * Invalidate tiles callback is called before the view is connected.
    
    Solution:
    * Call invalidation on connection.
    
    Signed-off-by: Gökay Şatır <gokaysa...@collabora.com>
    Change-Id: I997c603e11024743420ced659c7d0b0f1c5bc937
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180022
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181480
    Tested-by: Jenkins

diff --git a/sd/source/ui/docshell/docshel2.cxx 
b/sd/source/ui/docshell/docshel2.cxx
index 6a3ea2edfda1..caf6c44f1778 100644
--- a/sd/source/ui/docshell/docshel2.cxx
+++ b/sd/source/ui/docshell/docshel2.cxx
@@ -39,6 +39,9 @@
 #include <rtl/character.hxx>
 #include <tools/debug.hxx>
 
+#include <sfx2/lokhelper.hxx>
+#include <comphelper/lok.hxx>
+
 namespace sd {
 
 /**
@@ -147,6 +150,15 @@ void DrawDocShell::Draw(OutputDevice* pOut, const 
JobSetup&, sal_uInt16 nAspect,
 void DrawDocShell::Connect(ViewShell* pViewSh)
 {
     mpViewShell = pViewSh;
+
+    if (comphelper::LibreOfficeKit::isActive())
+    {
+        SfxViewShell* sfxViewShell = mpViewShell->GetViewShell();
+        if (sfxViewShell)
+        {
+            
mpViewShell->GetViewShell()->libreOfficeKitViewInvalidateTilesCallback(nullptr, 
sfxViewShell->getPart(), sfxViewShell->getEditMode());
+        }
+    }
 }
 
 void DrawDocShell::Disconnect(ViewShell const * pViewSh)

Reply via email to