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

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 27 12:25:20 UTC 2020


 basctl/source/basicide/basidesh.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit d762aa98046eb2294fc24c3955190a4e2e367868
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Aug 27 12:40:13 2020 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Aug 27 14:24:32 2020 +0200

    Fix a nonsense change
    
    ... from commit 9ad4eeb4fa413b1a3e084d141c6eb01795f95b7f.
    
    Change-Id: Ib8ed2fd638b393180860c549f432651f34878f5c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101452
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index a2f9023e8147..3cf2ed621457 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -905,14 +905,14 @@ void Shell::SetCurLib( const ScriptDocument& rDocument, const OUString& aLibName
 
     ContainerListenerImpl* pListener = static_cast< ContainerListenerImpl* >( m_xLibListener.get() );
 
+    if (pListener)
+        pListener->removeContainerListener(m_aCurDocument, m_aCurLibName);
+
     m_aCurDocument = rDocument;
     m_aCurLibName = aLibName;
 
     if ( pListener )
-    {
-        pListener->removeContainerListener( m_aCurDocument, m_aCurLibName );
         pListener->addContainerListener( m_aCurDocument, aLibName );
-    }
 
     if ( bUpdateWindows )
         UpdateWindows();


More information about the Libreoffice-commits mailing list