diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-05-29 18:03:37 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2019-10-11 21:19:26 +0200 |
commit | 702b199db825599222514c8716da575032f1b346 (patch) | |
tree | b2b7ebbae03687267c3ac037f80b950a92078fe9 /sc | |
parent | be51808b59d152e8fea596e854fab418d67d1a5c (diff) |
lok: Don't activate chart on insert.
Change-Id: I6b28438251c8f3eb6805ce4623e85b6fbd7710a4
Reviewed-on: https://gerrit.libreoffice.org/80657
Tested-by: Jenkins
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/drawfunc/fuins2.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index beb43c0a4381..8e15f0a73872 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -43,6 +43,7 @@ #include <sal/log.hxx> #include <tools/diagnose_ex.h> +#include <comphelper/lok.hxx> #include <comphelper/storagehelper.hxx> #include <comphelper/propertysequence.hxx> #include <comphelper/lok.hxx> @@ -613,7 +614,8 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV //the controller will be unlocked by the dialog when the dialog is told to do so // only activate object if not called via API (e.g. macro) - rViewShell.ActivateObject(pObj, embed::EmbedVerbs::MS_OLEVERB_SHOW); + if (!comphelper::LibreOfficeKit::isActive()) + rViewShell.ActivateObject(pObj, embed::EmbedVerbs::MS_OLEVERB_SHOW); //open wizard //@todo get context from calc if that has one |