Kaydet (Commit) 54ef215f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704657 Dereference after null check

Change-Id: Ia274c4f6ab148fd0390f3ff553e4cc4245681ab0
üst 44f5f2bd
...@@ -251,7 +251,7 @@ void ODesignView::resizeDocumentView(Rectangle& _rPlayground) ...@@ -251,7 +251,7 @@ void ODesignView::resizeDocumentView(Rectangle& _rPlayground)
// normalize the split pos // normalize the split pos
const long nSplitterWidth = GetSettings().GetStyleSettings().GetSplitSize(); const long nSplitterWidth = GetSettings().GetStyleSettings().GetSplitSize();
Point aTaskPanePos(nSplitPos + nSplitterWidth, _rPlayground.Top()); 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(); aTaskPanePos.X() = aPlaygroundSize.Width() - m_pTaskPane->GetSizePixel().Width();
sal_Int32 nMinWidth = m_pPropWin->getMinimumSize().Width(); sal_Int32 nMinWidth = m_pPropWin->getMinimumSize().Width();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment