From b07163d73a28e7792011edddf246726919364a26 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Fri, 30 Sep 2016 12:40:47 +0200 Subject: 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 Reviewed-by: Armin Le Grand --- include/vcl/dialog.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/vcl') diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx index da3aa7e37a46..0d763bda6f62 100644 --- a/include/vcl/dialog.hxx +++ b/include/vcl/dialog.hxx @@ -100,6 +100,11 @@ public: virtual void PrePaint(vcl::RenderContext& rRenderContext) override; virtual void PostPaint(vcl::RenderContext& rRenderContext) override; + // ensureRepaint - triggers Application::Yield until the dialog is + // completely repainted. Sometimes needed for dialogs showing progress + // during actions + void ensureRepaint(); + // Screenshot interface virtual std::vector getAllPageUIXMLDescriptions() const; virtual bool selectPageByUIXMLDescription(const OString& rUIXMLDescription); -- cgit