From a3b44da9482eb8a0095c85314cd71b7bafb38b29 Mon Sep 17 00:00:00 2001 From: Maxim Monastirsky Date: Thu, 27 Oct 2016 19:21:58 +0300 Subject: Fix insert special character crash Change-Id: Id75567f5f6689d15d62f88ed0907c296434b8f0a --- sw/source/uibase/shells/textsh.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index b5663aec62f9..7613cadb4673 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -942,7 +942,7 @@ void SwTextShell::InsertSymbol( SfxRequest& rReq ) aAllSet.Put( SfxStringItem( SID_FONT_NAME, aFont.GetFamilyName() ) ); SvxAbstractDialogFactory* pFact = SvxAbstractDialogFactory::Create(); - std::unique_ptr pDlg(pFact->CreateSfxDialog( GetView().GetWindow(), aAllSet, + ScopedVclPtr pDlg(pFact->CreateSfxDialog( GetView().GetWindow(), aAllSet, GetView().GetViewFrame()->GetFrame().GetFrameInterface(), RID_SVXDLG_CHARMAP )); if( RET_OK == pDlg->Execute() ) { -- cgit