summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-09-26 19:14:52 +0200
committerCao Cuong Ngo <cao.cuong.ngo@gmail.com>2013-09-26 19:16:40 +0200
commit4cd9024db1898176ed2dc06dfe36a2c71213bb02 (patch)
treead2f083771c558502bec275b669674f1ea259d90 /sfx2
parent86218bda0d74fc5bfc877b5c12d594d527207b11 (diff)
Fix Infobar crash
The infobar should be added to the infobar list. Change-Id: I105dd5091daf3596fdd7dd119a07d6160444c673
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/infobar.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index 82c2c3a56cea..e14b8bba8209 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 );