sc/source/ui/inc/gridwin.hxx | 1 + sc/source/ui/view/gridwin4.cxx | 7 +++++++ 2 files changed, 8 insertions(+)
New commits: commit f6c017fe3c62dae2aa2980b4e105d872a70e4024 Author: Rafael Lima <rafael.palma.l...@gmail.com> AuthorDate: Wed May 29 14:59:19 2024 +0200 Commit: Rafael Lima <rafael.palma.l...@gmail.com> CommitDate: Wed Jul 10 19:28:17 2024 +0200 tdf#159348 Update Highlight Overlay when window is resized When the window is not maximized, the highlight overlay outside the current view is not painted when the window is resized. This patch fixes this issue by repainting the overlay when the window is resized. Change-Id: I4ad35dcdabc0c95fd24c52a7b9cf7bc6f2583c1c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168192 Tested-by: Jenkins Reviewed-by: Rafael Lima <rafael.palma.l...@gmail.com> diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index ac5c81700f20..76cbe56f4c4e 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -439,6 +439,7 @@ public: using Window::Draw; void Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMode eMode ); + void Resize() override; /// Draw content of the gridwindow; shared between the desktop and the tiled rendering. void DrawContent(OutputDevice &rDevice, const ScTableInfo& rTableInfo, ScOutputData& aOutputData, bool bLogicText); diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx index 166056d914d8..b329e897d87c 100644 --- a/sc/source/ui/view/gridwin4.cxx +++ b/sc/source/ui/view/gridwin4.cxx @@ -438,6 +438,13 @@ void ScGridWindow::Paint( vcl::RenderContext& /*rRenderContext*/, const tools::R bIsInPaint = false; } +void ScGridWindow::Resize() +{ + // tdf#159348 update highlight overlay when window is resized + if (officecfg::Office::Calc::Content::Display::ColumnRowHighlighting::get()) + UpdateHighlightOverlay(); +} + void ScGridWindow::Draw( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2, ScUpdateMode eMode ) { ScDocument& rDoc = mrViewData.GetDocument();