summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-01-29 16:25:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-01-29 18:36:20 +0100
commit45b51b142de36cfbb9765a68d00417d3b8dc9bda (patch)
treef0d77939b9eaca478f3e268137ce98644e54103e
parent3544c475c0fd77f720f0767293656eaa02427e5e (diff)
cid#1401342 silence Uncaught exception
Change-Id: Ie8ac9ccd289a6d1d2a359521c5e2b5b97b1aeff5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87699 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/framework/factories/BasicViewFactory.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx
index 83601e413e2b..13e98c6d0825 100644
--- a/sd/source/ui/framework/factories/BasicViewFactory.cxx
+++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx
@@ -331,11 +331,9 @@ std::shared_ptr<ViewShell> BasicViewFactory::CreateViewShell (
}
else if (rsViewURL == FrameworkHelper::msDrawViewURL)
{
- pViewShell =
- std::make_shared<GraphicViewShell>(
- *mpBase,
- &rWindow,
- pFrameView);
+ pViewShell = std::shared_ptr<GraphicViewShell>(
+ new GraphicViewShell(*mpBase, &rWindow, pFrameView),
+ o3tl::default_delete<GraphicViewShell>());
pViewShell->GetContentWindow()->set_id("draw_win");
}
else if (rsViewURL == FrameworkHelper::msOutlineViewURL)