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

New commits:
commit b24ab6a7f85a126d978e4cf605f780e1e0f7083a
Author:     Henry Castro <hcas...@collabora.com>
AuthorDate: Tue Jul 18 15:15:41 2023 -0400
Commit:     Tomaž Vajngerl <qui...@gmail.com>
CommitDate: Tue Aug 8 14:32:02 2023 +0200

    tdf#155799: sc: fix "UpdateRef"" to update extended merged cells
    
    Extend the merged cell if the current has the attribute "Merged".
    
    Signed-off-by: Henry Castro <hcas...@collabora.com>
    Change-Id: Ia2d5983d89b8661abb683d10d4de8bd0c5adea7d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154993
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>

diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx
index 345ae9335256..442ef9a79654 100644
--- a/sc/source/ui/view/tabview4.cxx
+++ b/sc/source/ui/view/tabview4.cxx
@@ -213,6 +213,9 @@ void ScTabView::UpdateRef( SCCOL nCurX, SCROW nCurY, SCTAB 
nCurZ )
             rDoc.ExtendMerge( nStartX, nStartY, nEndX, nEndY, nTab );
         ScUpdateRect aRect( nStartX, nStartY, nEndX, nEndY );
 
+        if (rDoc.HasAttrib(nCurX, nCurY, nCurZ, HasAttrFlags::Merged))
+            rDoc.ExtendMerge(nStartX, nStartY, nCurX, nCurY, nCurZ);
+
         aViewData.SetRefEnd( nCurX, nCurY, nCurZ );
 
         nStartX = aViewData.GetRefStartX();

Reply via email to