diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-06 15:00:55 +0000 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-11-07 10:58:13 +0100 |
commit | 6294a9cf96ea562cc6aac43cfc15761e1188a951 (patch) | |
tree | 689068c7ec5d9f9b4c1dd8f8a8c0a800f2af88a5 | |
parent | tdf#128335 sw textbox: fix crash on deleting multiple shapes with textboxes (diff) | |
download | core-6294a9cf96ea562cc6aac43cfc15761e1188a951.tar.gz core-6294a9cf96ea562cc6aac43cfc15761e1188a951.zip |
Resolves: tdf#128631 dispatch active ole async
like we do for the other things that might create dialogs
Change-Id: I31ca267526ddeac8d0c7163af45c11be7750cb4c
Reviewed-on: https://gerrit.libreoffice.org/82144
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r-- | sd/source/ui/func/fudraw.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sd/source/ui/func/fudraw.cxx b/sd/source/ui/func/fudraw.cxx index 45a5629609bd..c2f141a85abe 100644 --- a/sd/source/ui/func/fudraw.cxx +++ b/sd/source/ui/func/fudraw.cxx @@ -686,15 +686,12 @@ void FuDraw::DoubleClick(const MouseEvent& rMEvt) if (nInv == SdrInventor::Default && nSdrObjKind == OBJ_OLE2) { - DrawDocShell* pDocSh = mpDoc->GetDocSh(); - - if ( !pDocSh->IsUIActive() ) - { - /********************************************************** - * activate OLE-object - **********************************************************/ - mpViewShell->ActivateObject( static_cast<SdrOle2Obj*>(pObj), 0); - } + // activate OLE-object + SfxInt16Item aItem(SID_OBJECT, 0); + mpViewShell->GetViewFrame()-> + GetDispatcher()->ExecuteList(SID_OBJECT, + SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, + { &aItem }); } else if (nInv == SdrInventor::Default && nSdrObjKind == OBJ_GRAF && pObj->IsEmptyPresObj() ) { |