summaryrefslogtreecommitdiff
path: root/sc/source/ui/view
diff options
context:
space:
mode:
authorRafael Lima <rafael.palma.lima@gmail.com>2024-07-10 19:29:52 +0200
committerRafael Lima <rafael.palma.lima@gmail.com>2024-07-12 14:47:42 +0200
commit2f113fe5b2aeb2b9ca7866d88c31c0cc09889e2a (patch)
treefa3a9edf5a180048e23ca7c5d0ee15c0537c5d86 /sc/source/ui/view
parent410da49f0116dc76f9b8438af8109501e8a9dcd4 (diff)
tdf#161785 Fix order overlays are repainted
Prior to this patch, the selection overlay was painted above the cursor when scrolling/resizing the window. This patch reorders it so that the selection overlay is always below the cursor. Change-Id: I5a9a66eeb6285b4a9b8954a44189ddcb6039d155 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170299 Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Tested-by: Jenkins Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r--sc/source/ui/view/gridwin.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 0c38afb4f9f8..c83c320e7f9f 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -6240,11 +6240,11 @@ void ScGridWindow::CursorChanged()
void ScGridWindow::ImpCreateOverlayObjects()
{
- UpdateCursorOverlay();
- UpdateCopySourceOverlay();
- UpdateSelectionOverlay();
UpdateHighlightOverlay();
+ UpdateSelectionOverlay();
UpdateAutoFillOverlay();
+ UpdateCursorOverlay();
+ UpdateCopySourceOverlay();
UpdateDragRectOverlay();
UpdateHeaderOverlay();
UpdateShrinkOverlay();