coverity#704647 Dereference after null check

Change-Id: Ifc74e903f13e6065c507d9a90825e588c5e88a42
This commit is contained in:
Caolán McNamara 2014-02-23 13:34:02 +00:00
parent 2a83910e72
commit cc39a4b7d1

View File

@ -746,7 +746,7 @@ bool ToolbarLayoutManager::dockToolbar( const OUString& rResourceURL, ui::Dockin
{ {
if (pToolBox) if (pToolBox)
aSize = pToolBox->CalcWindowSizePixel( 1, ImplConvertAlignment( aUIElement.m_aDockedData.m_nDockedArea ) ); aSize = pToolBox->CalcWindowSizePixel( 1, ImplConvertAlignment( aUIElement.m_aDockedData.m_nDockedArea ) );
else else if (pWindow)
aSize = pWindow->GetSizePixel(); aSize = pWindow->GetSizePixel();
} }