From 54ef215fa22c84d1b74f2bb63a2ec8f5a94f39fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Sun, 23 Feb 2014 13:42:57 +0000 Subject: [PATCH] coverity#704657 Dereference after null check Change-Id: Ia274c4f6ab148fd0390f3ff553e4cc4245681ab0 --- reportdesign/source/ui/report/DesignView.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reportdesign/source/ui/report/DesignView.cxx b/reportdesign/source/ui/report/DesignView.cxx index 613999d815bd..9b66b82bb5bc 100644 --- a/reportdesign/source/ui/report/DesignView.cxx +++ b/reportdesign/source/ui/report/DesignView.cxx @@ -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();