diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-07 09:27:19 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-07 10:14:49 +0100 |
commit | d7c72fcd591909ded965b97c29c29e58a829bb45 (patch) | |
tree | dd0467a93d61aee55758d7906f5db1fcbeba4ee7 | |
parent | 979e55e4a3acd10e3acf39aeeaddeb92f5e583bf (diff) |
coverity#705004 Explicit null dereferenced
Change-Id: I1f0638c4ba4355483b92dda3c912c859e9f8364a
-rw-r--r-- | sw/source/filter/xml/xmlimp.cxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sw/source/filter/xml/xmlimp.cxx b/sw/source/filter/xml/xmlimp.cxx index 0215106ed8fb..68ed7969a820 100644 --- a/sw/source/filter/xml/xmlimp.cxx +++ b/sw/source/filter/xml/xmlimp.cxx @@ -864,19 +864,19 @@ void SwXMLImport::endDocument( void ) delete pSttNdIdx; pSttNdIdx = 0; - if( (getImportFlags() == IMPORT_ALL ) ) - { - // Notify math objects. If we are in the package filter this will - // be done by the filter object itself - if( IsInsertMode() ) - pDoc->PrtOLENotify( sal_False ); - else if ( pDoc->IsOLEPrtNotifyPending() ) - pDoc->PrtOLENotify( sal_True ); - } - // SJ: #i49801# -> now permitting repaints if ( pDoc ) { + if( (getImportFlags() == IMPORT_ALL ) ) + { + // Notify math objects. If we are in the package filter this will + // be done by the filter object itself + if( IsInsertMode() ) + pDoc->PrtOLENotify( sal_False ); + else if ( pDoc->IsOLEPrtNotifyPending() ) + pDoc->PrtOLENotify( sal_True ); + } + SdrModel* pDrawModel = pDoc->GetDrawModel(); if ( pDrawModel ) pDrawModel->setLock(false); |