cppcheck: possible null pointer dereference: pDlg

This commit is contained in:
Takeshi Abe 2011-08-13 00:08:03 +09:00
parent a81327ff2f
commit f5d273bf98

View file

@ -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