summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-30 14:46:21 +0000
committerAndras Timar <andras.timar@collabora.com>2017-04-23 20:35:08 +0200
commit6b1135689ee19fe599765eee4e17d6880daddbe7 (patch)
treed09148f7c40362281b5b55773a8077bb09e0e478 /cui
parent84b9276e8ccc4e5c73f9aa7c59bcb3f9d6c3e190 (diff)
crash on exit from undisposed insert special character dialog
right click on style combobox in writer toolbar, insert character, esc, ctrl+f4 and crash Change-Id: I83c88584c6d772bf629121a2bcdc16076bee8003 (cherry picked from commit cfdfe1be91101654456bdf1f16d92461e1e5dbfa) Reviewed-on: https://gerrit.libreoffice.org/33701 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit c98f16943a95f498cecbfc9345b592b5a2144fd7) (cherry picked from commit 5740c02c3adef317f476740916dce386ea7158bf)
Diffstat (limited to 'cui')
-rw-r--r--cui/source/factory/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cui/source/factory/init.cxx b/cui/source/factory/init.cxx
index cdf2ed91d22b..a07113925262 100644
--- a/cui/source/factory/init.cxx
+++ b/cui/source/factory/init.cxx
@@ -28,7 +28,7 @@ extern "C"
SAL_DLLPUBLIC_EXPORT bool GetSpecialCharsForEdit(vcl::Window* i_pParent, const vcl::Font& i_rFont, OUString& o_rResult)
{
bool bRet = false;
- VclPtrInstance< SvxCharacterMap > aDlg( i_pParent );
+ ScopedVclPtrInstance<SvxCharacterMap> aDlg(i_pParent);
aDlg->DisableFontSelection();
aDlg->SetCharFont(i_rFont);
if ( aDlg->Execute() == RET_OK )