coverity#704657 Dereference after null check

Change-Id: Ia274c4f6ab148fd0390f3ff553e4cc4245681ab0
This commit is contained in:
Caolán McNamara 2014-02-23 13:42:57 +00:00
parent 44f5f2bd34
commit 54ef215fa2

View File

@ -251,7 +251,7 @@ void ODesignView::resizeDocumentView(Rectangle& _rPlayground)
// normalize the split pos
const long nSplitterWidth = GetSettings().GetStyleSettings().GetSplitSize();
Point aTaskPanePos(nSplitPos + nSplitterWidth, _rPlayground.Top());
if ( m_pTaskPane && m_pTaskPane->IsVisible() )
if (m_pTaskPane && m_pTaskPane->IsVisible() && m_pPropWin)
{
aTaskPanePos.X() = aPlaygroundSize.Width() - m_pTaskPane->GetSizePixel().Width();
sal_Int32 nMinWidth = m_pPropWin->getMinimumSize().Width();