coverity#704657 Dereference after null check
Change-Id: Ia274c4f6ab148fd0390f3ff553e4cc4245681ab0
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user