chart2/source/controller/main/ChartController_Window.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3eb61ea78d73c4b1311bf3ec4e5b4e0332e9f0ba
Author:     Gökay Şatır <gokaysa...@gmail.com>
AuthorDate: Mon Mar 18 15:34:01 2024 +0300
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Apr 2 12:26:18 2024 +0200

    Disable chart modification in readony view mode.
    
    Signed-off-by: Gökay Şatır <gokaysa...@gmail.com>
    Change-Id: I271caa12eed69099d6f0acd9bdcff53efcc26972
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164970
    Reviewed-by: Michael Meeks <michael.me...@collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    (cherry picked from commit dd232051d7ac43f1f15731916708a95403b78b62)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165627
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/chart2/source/controller/main/ChartController_Window.cxx 
b/chart2/source/controller/main/ChartController_Window.cxx
index 681c0ae95f0b..116e65090126 100644
--- a/chart2/source/controller/main/ChartController_Window.cxx
+++ b/chart2/source/controller/main/ChartController_Window.cxx
@@ -935,8 +935,8 @@ void ChartController::execute_MouseButtonUp( const 
MouseEvent& rMEvt )
 void ChartController::execute_DoubleClick( const Point* pMousePixel )
 {
     const SfxViewShell* pViewShell = SfxViewShell::Current();
-    bool isMobilePhone = pViewShell && pViewShell->isLOKMobilePhone();
-    if (isMobilePhone)
+    bool notAllowed = pViewShell && (pViewShell->isLOKMobilePhone() || 
pViewShell->IsLokReadOnlyView());
+    if (notAllowed)
         return;
 
     bool bEditText = false;

Reply via email to