From be53f32655973c7a18824d5145eed992be788d2f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 12 Mar 2020 13:55:55 +0200 Subject: rename vcl::Window::Update to PaintImmediately To make the code easier to read. Change-Id: Iebc648150391939fba5d1cd815c72dbcf02ceec6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90378 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/edit/textview.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source/edit') diff --git a/vcl/source/edit/textview.cxx b/vcl/source/edit/textview.cxx index 02cfa74f83ac..b5dc9703e5ae 100644 --- a/vcl/source/edit/textview.cxx +++ b/vcl/source/edit/textview.cxx @@ -933,13 +933,13 @@ void TextView::Scroll( long ndX, long ndY ) { bool bVisCursor = mpImpl->mpCursor->IsVisible(); mpImpl->mpCursor->Hide(); - mpImpl->mpWindow->Update(); + mpImpl->mpWindow->PaintImmediately(); mpImpl->maStartDocPos = aNewStartPos; if ( mpImpl->mpTextEngine->IsRightToLeft() ) nDiffX = -nDiffX; mpImpl->mpWindow->Scroll( nDiffX, nDiffY ); - mpImpl->mpWindow->Update(); + mpImpl->mpWindow->PaintImmediately(); mpImpl->mpCursor->SetPos( mpImpl->mpCursor->GetPos() + Point( nDiffX, nDiffY ) ); if ( bVisCursor && !mpImpl->mbReadOnly ) mpImpl->mpCursor->Show(); -- cgit