diff options
author | Henry Castro <hcastro@collabora.com> | 2023-07-18 15:15:41 -0400 |
---|---|---|
committer | Aron Budea <aron.budea@collabora.com> | 2023-08-10 16:51:31 +0200 |
commit | db19cb262534c051cf4342055b50332d21e06aa8 (patch) | |
tree | bc4e1e2659e6e8c72e8690f18c846d55d04e2883 | |
parent | 5279aff5588941e1e131a703059e8148713d24ef (diff) |
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 <hcastro@collabora.com>
Change-Id: Ia2d5983d89b8661abb683d10d4de8bd0c5adea7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154993
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153406
Tested-by: Aron Budea <aron.budea@collabora.com>
Reviewed-by: Aron Budea <aron.budea@collabora.com>
-rw-r--r-- | sc/source/ui/view/tabview4.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx index 5238947a88f3..3ed71a5ef931 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(); |