summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorArmin Le Grand <Armin.Le.Grand@cib.de>2016-09-30 12:40:47 +0200
committerArmin Le Grand <Armin.Le.Grand@cib.de>2016-10-06 09:01:30 +0000
commitb07163d73a28e7792011edddf246726919364a26 (patch)
tree9693cb4ba0151f4973730745b801509f9ff6fd18 /sd
parentc5d355e9c9cbc94eede8f438895e192d834f7096 (diff)
tdf#102852 Fixed BreakDlg
Needed to ensure correct return value in dialog and that it repaints Change-Id: I029d10b6699629b2f2f8651f6d96ceceba7a3d8c Reviewed-on: https://gerrit.libreoffice.org/29401 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Armin Le Grand <Armin.Le.Grand@cib.de>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/brkdlg.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sd/source/ui/dlg/brkdlg.cxx b/sd/source/ui/dlg/brkdlg.cxx
index be0c2d579812..516a3bcfbe9b 100644
--- a/sd/source/ui/dlg/brkdlg.cxx
+++ b/sd/source/ui/dlg/brkdlg.cxx
@@ -145,8 +145,13 @@ IMPL_LINK( BreakDlg, UpDate, void*, nInit, bool )
m_pFiInsInfo->SetText(info);
}
- Application::Reschedule();
- return bCancel;
+ // make sure dialog gets painted, it is intended to
+ // show the progress to the user. Also necessary to
+ // provide a clickable cancel button
+ ensureRepaint();
+
+ // return okay-value (-> !cancel)
+ return !bCancel;
}
/**