diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2022-11-07 13:43:48 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2022-11-07 15:23:22 +0100 |
commit | 429f3d8e3eddedb7ab183b6530220bc7491302e7 (patch) | |
tree | 2f5c085439ffee996bf6f980825cba1277179c4f /sd/source/ui | |
parent | 801e6272dc299d4468ec094ce11b66494eb5018b (diff) |
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.mehrbrodt@allotropia.de>
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'sd/source/ui')
-rw-r--r-- | sd/source/ui/view/drviews4.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |