summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-10-15 17:22:32 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2019-10-16 10:27:20 +0200
commitba088fc39c929c90a14451d75989241a6f18df7d (patch)
tree9609fc921aca5bb646671acf8cd87da6ce838537 /chart2
parentf8c79e52842e5f0837de0382f530e0cc44e15e32 (diff)
Disable chart doubleclick on mobile
To not show any dialog. Change-Id: Ie19df429b927f746d3fc511ab0aa7b489ec1fd18 Reviewed-on: https://gerrit.libreoffice.org/80850 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx
index 1d058138aa49..9a0c19544c70 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -82,6 +82,9 @@
#include <tools/diagnose_ex.h>
#include <sal/log.hxx>
+#include <comphelper/lok.hxx>
+#include <sfx2/lokhelper.hxx>
+
#define DRGPIX 2 // Drag MinMove in Pixel
using namespace ::com::sun::star;
@@ -924,6 +927,10 @@ void ChartController::execute_MouseButtonUp( const MouseEvent& rMEvt )
void ChartController::execute_DoubleClick( const Point* pMousePixel )
{
+ bool isMobile = comphelper::LibreOfficeKit::isMobile(SfxLokHelper::getView());
+ if (isMobile)
+ return;
+
bool bEditText = false;
if ( m_aSelection.hasSelection() )
{