diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-04-03 17:24:25 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-04-03 21:01:51 +0200 |
commit | dd56b1c4980bea867286880bd0ac194b6106c968 (patch) | |
tree | c1a601c203ba9c99aad89d0af53d8c842893e828 /sc/source/ui/drawfunc/fusel.cxx | |
parent | e97c8ceb003488589bf14c7ea335eaa3e1a86975 (diff) |
set a parent for embedded object warning dialog
calc does a lot of "CaptureMouse" which then leads to a lot of
"ReleaseMouse", I'm somewhat unconvinced that there should be any
CaptureMouse calls in there.
Change-Id: I7c44d2c36c89a5c32c525d65939723da9be77a72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149973
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/drawfunc/fusel.cxx')
-rw-r--r-- | sc/source/ui/drawfunc/fusel.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/ui/drawfunc/fusel.cxx b/sc/source/ui/drawfunc/fusel.cxx index 2fd8a9dc3fd6..d95f810308fa 100644 --- a/sc/source/ui/drawfunc/fusel.cxx +++ b/sc/source/ui/drawfunc/fusel.cxx @@ -489,6 +489,10 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) { if (static_cast<SdrOle2Obj*>(pObj)->GetObjRef().is()) { + // release so if ActivateObject launches a warning dialog, then that dialog + // can get mouse events + if (pWindow->IsMouseCaptured()) + pWindow->ReleaseMouse(); rViewShell.ActivateObject(static_cast<SdrOle2Obj*>(pObj), css::embed::EmbedVerbs::MS_OLEVERB_PRIMARY); } } |