summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2019-05-29 15:42:20 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-08-31 01:00:32 +0200
commit758a4998c56c73d2420c1ee2e3f41bedd153559d (patch)
tree1941d99b97040753ea2cae1d29637dd5383556c7 /sw
parentc598ea1427250b50c1f3a4b0eacb34a11b2751fb (diff)
sw sd lok: Don't enter the OLE editing mode right after inserting a chart.
Turns out that it is confusing for the users that they can edit the properties of the chart rather than its position just after inserting it in the browser. Let's change it accordingly. When the user wants to edit the chart itself, they have to double-click. Calc is not handled in this patch. Change-Id: If5661b843a06ebaeb8d4cd1b2c469aeedda4257e Reviewed-on: https://gerrit.libreoffice.org/78318 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/table/tablemgr.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/uibase/table/tablemgr.cxx b/sw/source/uibase/table/tablemgr.cxx
index 882f4f99329d..313cec6df5de 100644
--- a/sw/source/uibase/table/tablemgr.cxx
+++ b/sw/source/uibase/table/tablemgr.cxx
@@ -48,6 +48,8 @@
#include <unochart.hxx>
#include <memory>
+#include <comphelper/lok.hxx>
+
using namespace ::com::sun::star;
// Adjust line height (dialogue)
@@ -248,9 +250,10 @@ uno::Reference< frame::XModel > SwTableFUNC::InsertChart(
}
pSh->EndAllAction();
- if ( xObj.is() )
+ if (xObj.is() && !comphelper::LibreOfficeKit::isActive())
{
- // Let the chart be activated after the inserting
+ // Let the chart be activated after the inserting (unless
+ // via LibreOfficeKit)
SfxInPlaceClient* pClient = pSh->GetView().FindIPClient( xObj, &pSh->GetView().GetEditWin() );
if ( !pClient )
{