[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - chart2/source
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Wed Oct 16 08:27:59 UTC 2019
chart2/source/controller/main/ChartController_Window.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit ba088fc39c929c90a14451d75989241a6f18df7d
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Oct 15 17:22:32 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Oct 16 10:27:20 2019 +0200
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 at gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
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() )
{
More information about the Libreoffice-commits
mailing list