[Libreoffice-commits] core.git: Branch 'libreoffice-6-1-0' - editeng/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Jul 27 08:07:32 UTC 2018


 editeng/source/misc/svxacorr.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 28f8e7434065e040e17562014db3624a8d3cd6ea
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Jul 23 22:00:25 2018 +0200
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jul 27 10:07:06 2018 +0200

    tdf#118517: Use xStg before resetting it
    
    Regression from 0f166ef5240ee155bf2544e6bc3c985b1e3bf646
    Change-Id: I083951700895a00be8d4407871c27804ca3e5f30
    Reviewed-on: https://gerrit.libreoffice.org/57881
    Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
    Tested-by: Noel Grandin <noel.grandin at collabora.co.uk>
    (cherry picked from commit a61d61f66f80c91c14825f8fe8fb9bd3f295591b)
    Reviewed-on: https://gerrit.libreoffice.org/57907
    Reviewed-by: Eike Rathke <erack at redhat.com>
    Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 556f60b9c426..b890b5cd0984 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -2568,9 +2568,9 @@ void SvxAutoCorrectLanguageLists::PutText( const OUString& rShort,
     try
     {
         uno::Reference < embed::XStorage > xStg = comphelper::OStorageHelper::GetStorageFromURL( sUserAutoCorrFile, embed::ElementModes::READWRITE );
+        bool bRet = rAutoCorrect.PutText( xStg, sUserAutoCorrFile, rShort, rShell, sLong );
         xStg = nullptr;
 
-        bool bRet = rAutoCorrect.PutText( xStg, sUserAutoCorrFile, rShort, rShell, sLong );
         // Update the word list
         if( bRet )
         {


More information about the Libreoffice-commits mailing list