summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-10-10 10:35:38 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2019-10-10 13:27:26 +0200
commit91c586e10c816340523bf1c4df910dd2538c9fee (patch)
tree896c05c680ea4eba86849da4401ff7eefccd0183 /sc
parent175ab303958809391bfd985729f177d26ba35cbb (diff)
Don't show chart wizard on mobile
Change-Id: Ic4c65293462d56e1ecedcaaad71575f50b6c1dba Reviewed-on: https://gerrit.libreoffice.org/80592 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> (cherry picked from commit 805ee5251c5ad92b0738f155a63694bc1ecd0f38) Reviewed-on: https://gerrit.libreoffice.org/80598 Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/drawfunc/fuins2.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx
index 9123a8ecfc6b..beb43c0a4381 100644
--- a/sc/source/ui/drawfunc/fuins2.cxx
+++ b/sc/source/ui/drawfunc/fuins2.cxx
@@ -45,6 +45,8 @@
#include <comphelper/storagehelper.hxx>
#include <comphelper/propertysequence.hxx>
+#include <comphelper/lok.hxx>
+#include <sfx2/lokhelper.hxx>
#include <com/sun/star/embed/EmbedVerbs.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/chart2/data/XDataReceiver.hpp>
@@ -606,7 +608,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV
if( xChartModel.is() )
xChartModel->unlockControllers();
}
- else
+ else if (!comphelper::LibreOfficeKit::isMobile(SfxLokHelper::getView()))
{
//the controller will be unlocked by the dialog when the dialog is told to do so