From 5e245445200c5d094bb7eef76d8df3077b799ac5 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 10 May 2018 11:27:36 +0100 Subject: weld SdCustomShowDlg and SdDefineCustomShowDlg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I44d40a286eb5d70982284a270f340653858d38cf Reviewed-on: https://gerrit.libreoffice.org/54076 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- sd/qa/unit/dialogs-test.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sd/qa') diff --git a/sd/qa/unit/dialogs-test.cxx b/sd/qa/unit/dialogs-test.cxx index a30643293ed1..a4a0a049bd7a 100644 --- a/sd/qa/unit/dialogs-test.cxx +++ b/sd/qa/unit/dialogs-test.cxx @@ -307,8 +307,9 @@ VclPtr SdDialogsTest::createDialogByID(sal_uInt32 nID) SdDrawDocument* pDrawDoc = getSdXImpressDocument()->GetDoc(); CPPUNIT_ASSERT(pDrawDoc); + auto const parent = getViewShell()->GetActiveWindow(); pRetval = getSdAbstractDialogFactory()->CreateSdCustomShowDlg( - getViewShell()->GetActiveWindow(), + parent == nullptr ? nullptr : parent->GetFrameWeld(), *pDrawDoc); break; } -- cgit