sc/source/ui/docshell/dbdocfun.cxx | 3 ++- sc/source/ui/view/gridwin.cxx | 27 +++++++++++++++++---------- 2 files changed, 19 insertions(+), 11 deletions(-)
New commits: commit 241ca80b76b1c354d9bc45c6b10e8b47f7252436 Author: Balazs Varga <[email protected]> AuthorDate: Fri Nov 7 19:00:26 2025 +0100 Commit: Andras Timar <[email protected]> CommitDate: Mon Nov 17 19:04:53 2025 +0100 Table style: fix horizontal auto fill update on table area In case of horizontal auto fill of the table area require an update on the selected area otherwise the area will stay selected. Change-Id: Id41b929e49262b61a7af4cac4b7af05649b18a37 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193689 Reviewed-by: Andras Timar <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sc/source/ui/docshell/dbdocfun.cxx b/sc/source/ui/docshell/dbdocfun.cxx index 2f7a070a772e..bfbeffa2f335 100644 --- a/sc/source/ui/docshell/dbdocfun.cxx +++ b/sc/source/ui/docshell/dbdocfun.cxx @@ -259,7 +259,8 @@ void ScDBDocFunc::ModifyDBData( const ScDBData& rNewData ) } } - rDocShell.PostPaint(aOldRange, PaintPartFlags::Grid); + rDocShell.PostPaint(aOldRange, PaintPartFlags::Grid | PaintPartFlags::Left | PaintPartFlags::Top + | PaintPartFlags::Size); if (bUndo) { commit 9e37079935706506516d81fff642c0c7c12c0c98 Author: Balazs Varga <[email protected]> AuthorDate: Wed Nov 5 20:02:16 2025 +0100 Commit: Andras Timar <[email protected]> CommitDate: Mon Nov 17 19:04:44 2025 +0100 Table styles: fix crash in online after selecting table area TODO: draw rectangle around table area and show auto fill rectangle in Online. Change-Id: Idb71c2e6eb426ca9141ceba5b5cbac7801bd15be Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193688 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Andras Timar <[email protected]> diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 7a388c04df86..4ed7538aff12 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -6970,6 +6970,7 @@ void ScGridWindow::UpdateSelectionOverlay() void ScGridWindow::DeleteDatabaseOverlay() { + mpDBExpandRect.reset(); mpOODatabase.reset(); } @@ -7017,16 +7018,22 @@ void ScGridWindow::UpdateDatabaseOverlay() // #i70788# get the OverlayManager safely rtl::Reference<sdr::overlay::OverlayManager> xOverlayManager = getOverlayManager(); - std::unique_ptr<sdr::overlay::OverlayObject> pOverlay(new sdr::overlay::OverlaySelection( - sdr::overlay::OverlayType::NoFill, - aDBColor, - std::move(aRanges), - true, true)); - - xOverlayManager->add(*pOverlay); - std::unique_ptr<sdr::overlay::OverlayObjectList> pOverlayList = DrawFillMarker(aCurrRange.aEnd.Col(), aCurrRange.aEnd.Row(), mpDBExpandRect); - mpOODatabase.swap(pOverlayList); - mpOODatabase->append(std::move(pOverlay)); + if (xOverlayManager.is()) + { + std::unique_ptr<sdr::overlay::OverlayObject> pOverlay(new sdr::overlay::OverlaySelection( + sdr::overlay::OverlayType::NoFill, + aDBColor, + std::move(aRanges), + true, true)); + + xOverlayManager->add(*pOverlay); + std::unique_ptr<sdr::overlay::OverlayObjectList> pOverlayList = DrawFillMarker(aCurrRange.aEnd.Col(), aCurrRange.aEnd.Row(), mpDBExpandRect); + if (pOverlayList) + { + mpOODatabase.swap(pOverlayList); + mpOODatabase->append(std::move(pOverlay)); + } + } } }
