[Libreoffice-commits] core.git: sd/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 29 17:37:01 UTC 2020


 sd/source/ui/framework/factories/BasicViewFactory.cxx |    8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 45b51b142de36cfbb9765a68d00417d3b8dc9bda
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Jan 29 16:25:55 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Wed Jan 29 18:36:20 2020 +0100

    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 at redhat.com>

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)


More information about the Libreoffice-commits mailing list