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

Cao Cuong Ngo cao.cuong.ngo at gmail.com
Thu Sep 26 10:35:44 PDT 2013


 sfx2/source/dialog/infobar.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 4cd9024db1898176ed2dc06dfe36a2c71213bb02
Author: Cao Cuong Ngo <cao.cuong.ngo at gmail.com>
Date:   Thu Sep 26 19:14:52 2013 +0200

    Fix Infobar crash
    
    The infobar should be added to the infobar list.
    
    Change-Id: I105dd5091daf3596fdd7dd119a07d6160444c673

diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index 82c2c3a..e14b8bb 100644
--- a/sfx2/source/dialog/infobar.cxx
+++ b/sfx2/source/dialog/infobar.cxx
@@ -251,6 +251,7 @@ void SfxInfoBarContainerWindow::appendInfoBar( const OUString& sId, const OUStri
     SfxInfoBarWindow* pInfoBar = new SfxInfoBarWindow( this, sId, sMessage, aButtons );
     pInfoBar->SetPosPixel( Point( 0, aSize.getHeight( ) ) );
     pInfoBar->Show( );
+    m_pInfoBars.push_back( pInfoBar );
 
     long nHeight = pInfoBar->GetSizePixel( ).getHeight( );
     aSize.setHeight( aSize.getHeight() + nHeight );


More information about the Libreoffice-commits mailing list