summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2011-08-13 00:08:03 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2011-08-13 00:08:49 +0900
commitf5d273bf9892cf25bec8ea3d9dd6736880a05d8c (patch)
treece684a6f07534e001f8209a3c041fddc94f8effe /sw
parenta81327ff2faaf21c22f1a902bea170942d5207e6 (diff)
cppcheck: possible null pointer dereference: pDlg
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/uiview/view2.cxx11
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