cppcheck: possible null pointer dereference: pDlg
This commit is contained in:
parent
a81327ff2f
commit
f5d273bf98
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue