summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-23 13:42:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 14:22:44 +0000
commit54ef215fa22c84d1b74f2bb63a2ec8f5a94f39fa (patch)
tree30706878c89c655b8fff78d3d9b1733e498ab0c8 /reportdesign
parent44f5f2bd34f79d4035caa8310401f03b0797fe74 (diff)
coverity#704657 Dereference after null check
Change-Id: Ia274c4f6ab148fd0390f3ff553e4cc4245681ab0
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/DesignView.cxx2
1 files changed, 1 insertions, 1 deletions
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();