sd/source/ui/view/drviews4.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 429f3d8e3eddedb7ab183b6530220bc7491302e7
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Mon Nov 7 13:43:48 2022 +0100
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Mon Nov 7 15:23:22 2022 +0100

    tdf#144399 Don't allow editing in r/o mode
    
    Fallout from ea9fff260129ccfa4755e96c08432252efbe5621
    
    Change-Id: I0c73d13b79389db13bb04046731bdf18b4cf6005
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142382
    Tested-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx
index e3181ba50d03..b21789c80137 100644
--- a/sd/source/ui/view/drviews4.cxx
+++ b/sd/source/ui/view/drviews4.cxx
@@ -256,11 +256,12 @@ bool DrawViewShell::KeyInput (const KeyEvent& rKEvt, 
::sd::Window* pWin)
                FreshNavigatrTree();
             }
         }
+        if (!bRet && !mbReadOnly) // tdf#139804
+        {
+            bRet = GetView()->KeyInput(rKEvt, pWin);
+        }
     }
 
-    if (!bRet)
-        bRet = GetView()->KeyInput(rKEvt, pWin);
-
     return bRet;
 }
 

Reply via email to