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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Jul 24 13:17:16 UTC 2018


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

New commits:
commit 1706ed7334461420274584b875ae6ab209f4dad9
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Mon Jul 23 22:00:25 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Jul 24 15:16:53 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/57906
    Tested-by: Jenkins
    Reviewed-by: Xisco FaulĂ­ <xiscofauli at libreoffice.org>

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