diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-03-18 10:22:26 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-03-18 12:40:25 +0100 |
commit | b913cec377878ed640582dcf611ccf8eaf21bd85 (patch) | |
tree | 5567f4889d500326d220d04ae34d350bca4a4331 /sd | |
parent | 996f0e6a0f39434e6e1b1b450262d97af60d663d (diff) |
tdf#131395 handle all outstanding events
to ensure the paint gets handled, if this turns out not to be sufficient then
next fallback is to allow a route to Dialog::ensureRepaint to be exposed
Change-Id: I3ab749170dfaeb92eae40a44bb1bde123c47f9f4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90686
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/brkdlg.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx index 81a0251ea819..8edfac4e1aa4 100644 --- a/sd/source/ui/dlg/brkdlg.cxx +++ b/sd/source/ui/dlg/brkdlg.cxx @@ -21,8 +21,9 @@ #include <sfx2/progress.hxx> #include <svx/svdetc.hxx> -#include <vcl/weld.hxx> +#include <vcl/scheduler.hxx> #include <vcl/svapp.hxx> +#include <vcl/weld.hxx> #include <sdresid.hxx> #include <drawview.hxx> @@ -125,7 +126,7 @@ IMPL_LINK( BreakDlg, UpDate, void*, nInit, bool ) // make sure dialog gets painted, it is intended to // show the progress to the user. Also necessary to // provide a clickable cancel button - Application::Reschedule(true); + Scheduler::ProcessEventsToIdle(); // return okay-value (-> !cancel) return !m_bCancel; |