diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2024-05-29 14:59:19 +0200 |
---|---|---|
committer | Rafael Lima <rafael.palma.lima@gmail.com> | 2024-07-10 19:28:17 +0200 |
commit | f6c017fe3c62dae2aa2980b4e105d872a70e4024 (patch) | |
tree | 66715864eb82c9986380ebd90a25010837592436 /sc | |
parent | 115f60037409c511ae01006dedd32306ddf274ff (diff) |
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.lima@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/gridwin.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin4.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
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(); |