sc/source/ui/inc/gridwin.hxx   |    2 ++
 sc/source/ui/view/gridwin4.cxx |   10 ++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 28d41e60416ef10ae2a59d1c4ad34a2eb75dc408
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Aug 17 20:31:55 2023 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Aug 18 18:32:56 2023 +0200

    add a LogicInvalidatePart which can take a 'part'
    
    no change in behaviour intended
    
    Change-Id: Idee6615cc86cd01bea9aaf17fff2840eea6521a0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155814
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index ddc9815c2052..979767c6801b 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -320,6 +320,8 @@ class SAL_DLLPUBLIC_RTTI ScGridWindow : public 
vcl::DocWindow, public DropTarget
     void            SetupInitialPageBreaks(const ScDocument& rDoc, SCTAB nTab);
     DECL_DLLPRIVATE_LINK(InitiatePageBreaksTimer, Timer*, void);
 
+    void            LogicInvalidatePart(const tools::Rectangle* pRectangle, 
int nPart);
+
 protected:
     virtual void    PrePaint(vcl::RenderContext& rRenderContext) override;
     virtual void    Paint(vcl::RenderContext& rRenderContext, const 
tools::Rectangle& rRect) override;
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index bc2521531a37..a86902d57944 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1727,7 +1727,7 @@ void ScGridWindow::PaintTile( VirtualDevice& rDevice,
     }
 }
 
-void ScGridWindow::LogicInvalidate(const tools::Rectangle* pRectangle)
+void ScGridWindow::LogicInvalidatePart(const tools::Rectangle* pRectangle, int 
nPart)
 {
     tools::Rectangle aRectangle;
     tools::Rectangle* pResultRectangle;
@@ -1759,7 +1759,13 @@ void ScGridWindow::LogicInvalidate(const 
tools::Rectangle* pRectangle)
     }
 
     ScTabViewShell* pViewShell = mrViewData.GetViewShell();
-    SfxLokHelper::notifyInvalidation(pViewShell, pResultRectangle);
+    SfxLokHelper::notifyInvalidation(pViewShell, nPart, pResultRectangle);
+}
+
+void ScGridWindow::LogicInvalidate(const tools::Rectangle* pRectangle)
+{
+    ScTabViewShell* pViewShell = mrViewData.GetViewShell();
+    LogicInvalidatePart(pRectangle, pViewShell->getPart());
 }
 
 void ScGridWindow::SetCellSelectionPixel(int nType, int nPixelX, int nPixelY)

Reply via email to