cancel on insert frame was inserting a frame

Change-Id: Ie95947935b5891642f22c81a15ae1d9ed24fd3f2
This commit is contained in:
Caolán McNamara 2012-10-30 09:54:32 +00:00
parent 23a324d282
commit ce3d66c29d

View file

@ -597,7 +597,7 @@ void SwTextShell::ExecInsert(SfxRequest &rReq)
SfxAbstractTabDialog* pDlg = pFact->CreateFrmTabDialog( DLG_FRM_STD,
GetView().GetViewFrame(), &GetView().GetViewFrame()->GetWindow(), aSet, sal_True);
OSL_ENSURE(pDlg, "Dialogdiet fail!");
if(pDlg->Execute() && pDlg->GetOutputItemSet())
if(pDlg->Execute() == RET_OK && pDlg->GetOutputItemSet())
{
//local variable necessary at least after call of .AutoCaption() because this could be deleted at this point
SwWrtShell& rShell = GetShell();