sd/qa/unit/dialogs-test.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 282fcde9d28a033db0d4eb7e6b106f448c359980 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Apr 3 14:02:52 2018 +0200 Fix CppunitTest_sd_dialogs_test Change-Id: I59538fa101cedc909fcb308c894e7b96db85c2eb diff --git a/sd/qa/unit/dialogs-test.cxx b/sd/qa/unit/dialogs-test.cxx index de75d8f55e6a..478f91b324e8 100644 --- a/sd/qa/unit/dialogs-test.cxx +++ b/sd/qa/unit/dialogs-test.cxx @@ -283,8 +283,9 @@ VclPtr<VclAbstractDialog> SdDialogsTest::createDialogByID(sal_uInt32 nID) // there is no object selected that can be broken up. For better // results it might be necessary to add/select an object that // delivers a good metafile (which is the base for breaking) + auto const parent = Application::GetDefDialogParent(); pRetval = getSdAbstractDialogFactory()->CreateBreakDlg( - Application::GetDefDialogParent(), + parent == nullptr ? nullptr : parent->GetFrameWeld(), getDrawView(), getDocShell(), 0, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits