chart2/source/controller/main/ChartController_Window.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit dd232051d7ac43f1f15731916708a95403b78b62 Author: Gökay Şatır <gokaysa...@gmail.com> AuthorDate: Mon Mar 18 15:34:01 2024 +0300 Commit: Gökay ŞATIR <gokaysa...@collabora.com> CommitDate: Mon Mar 18 15:37:35 2024 +0100 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> diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 1b2b3654c201..20ba98a6e76d 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -937,8 +937,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;