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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 11 13:10:14 UTC 2019


 svx/source/gallery2/galbrws2.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 379ab849b415d61c542fc5ebd613e94052df4afb
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Feb 11 11:54:17 2019 +0100
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Mon Feb 11 14:09:47 2019 +0100

    tdf#22919 crash on insert picture as background from the gallery
    
    regression from commit
    commit 1b7bcaa714f0af45c6a9660d1f0940cb7931ba0f use unique_ptr in svx
    
    Follow-up from fc723fd872d5ffa52551f570b64c2b924d1cc97e
    
    Change-Id: I034583e848c6b030e77ed43893c1c7db44280add
    Reviewed-on: https://gerrit.libreoffice.org/67681
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>
    Tested-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index 98d3b14dfbe8..b671bb343e01 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -219,9 +219,9 @@ void GalleryThemePopup::Execute(
         pInfo->Arguments = rArguments;
         pInfo->Dispatch = rCmdInfo.Dispatch;
 
-        if ( !Application::PostUserEvent(
+        if ( Application::PostUserEvent(
                 LINK( nullptr, GalleryBrowser2, AsyncDispatch_Impl), pInfo.get() ) )
-            pInfo.reset();
+            pInfo.release();
     }
 }
 


More information about the Libreoffice-commits mailing list