diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-16 15:48:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-16 19:09:02 +0100 |
commit | a7de363cead5cd0021d2e3df4573d4cbe27df23b (patch) | |
tree | f9e60ff583c1621bf6a5eee2a36eb22b41052708 /sc | |
parent | 2f7f34bf9fb744a2615426e4414dff3ca6fbe6e4 (diff) |
remove unnecessary Window::Update() calls, which immediately follow Invalidate
Update() is effectively "paint immediately". Rather just let the
invalidate do it's thing and have the widget paint on the next paint
loop, along with the rest of the stuff.
This is probably mostly cargo-cult, from the days when our
invalidate/paint timer could take a long time to kick in.
Change-Id: Idff06526e9a2892244cfd8ce6947916032b0d1a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90567
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/olinewin.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sc/source/ui/view/olinewin.cxx b/sc/source/ui/view/olinewin.cxx index feaec576e295..ea117e566c90 100644 --- a/sc/source/ui/view/olinewin.cxx +++ b/sc/source/ui/view/olinewin.cxx @@ -123,7 +123,6 @@ void ScOutlineWindow::ScrollPixel( long nDiff ) ScrollRel( nDiff, nStart, nEnd ); Invalidate( GetRectangle( 0, nInvStart, GetOutputSizeLevel() - 1, nInvEnd ) ); - Update(); // if focus becomes invisible, move it to next visible button ImplMoveFocusToVisible( nDiff < 0 ); |