diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2011-08-13 00:08:03 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2011-08-13 00:08:49 +0900 |
commit | f5d273bf9892cf25bec8ea3d9dd6736880a05d8c (patch) | |
tree | ce684a6f07534e001f8209a3c041fddc94f8effe /sw | |
parent | a81327ff2faaf21c22f1a902bea170942d5207e6 (diff) |
cppcheck: possible null pointer dereference: pDlg
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/uiview/view2.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sw/source/ui/uiview/view2.cxx b/sw/source/ui/uiview/view2.cxx index b7cec7a5325a..89245c897ecb 100644 --- a/sw/source/ui/uiview/view2.cxx +++ b/sw/source/ui/uiview/view2.cxx @@ -1541,12 +1541,13 @@ void SwView::ExecuteStatusLine(SfxRequest &rReq) { pDlg = pFact->CreateSvxZoomDialog(&GetViewFrame()->GetWindow(), aCoreSet); OSL_ENSURE(pDlg, "Dialogdiet fail!"); + if (pDlg) + { + pDlg->SetLimits( MINZOOM, MAXZOOM ); + if( pDlg->Execute() != RET_CANCEL ) + pSet = pDlg->GetOutputItemSet(); + } } - - pDlg->SetLimits( MINZOOM, MAXZOOM ); - - if( pDlg->Execute() != RET_CANCEL ) - pSet = pDlg->GetOutputItemSet(); } // PAGES01 |