diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-30 09:54:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-30 11:32:49 +0000 |
commit | ce3d66c29da891eee999a2e702c05ecd6babf5ff (patch) | |
tree | 4923f5ea9e5adb83c0bd8e1165ffe2cd3117a5f8 /sw | |
parent | 23a324d282865d2a95142e0c758d266f1a0dc080 (diff) |
cancel on insert frame was inserting a frame
Change-Id: Ie95947935b5891642f22c81a15ae1d9ed24fd3f2
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/shells/textsh.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/shells/textsh.cxx b/sw/source/ui/shells/textsh.cxx index f282e5f85d57..1fdaf20270e8 100644 --- a/sw/source/ui/shells/textsh.cxx +++ b/sw/source/ui/shells/textsh.cxx @@ -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(); |