diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-09 15:30:51 +0000 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-03-14 17:17:26 +0000 |
commit | bf81970071261e99c5921ae1b8748fde82b8e077 (patch) | |
tree | 5a981a134b1a78c860b636c68de7cf061c522b4a /basctl | |
parent | b067f794b99855c318f894dd4ec247f65cec0dd3 (diff) |
Resolves: tdf#95428 backspace in readonly macro editor hangs
Change-Id: I16568b00e92d18f32818188ba3ab8df92bbd13aa
(cherry picked from commit 5b3f84cec471ddbde98a46220096cdb952bb1935)
Reviewed-on: https://gerrit.libreoffice.org/23087
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/baside2.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx index d4102010a6df..04daad9b5fd1 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -892,11 +892,10 @@ void ModulWindow::ExecuteCommand (SfxRequest& rReq) { case SID_DELETE: { - KeyEvent aFakeDelete( 0, KEY_DELETE ); - bool bDone = GetEditView()->KeyInput( aFakeDelete ); - if (!bDone) + if (!IsReadOnly()) { - BaseWindow::KeyInput(aFakeDelete); + KeyEvent aFakeDelete(0, KEY_DELETE); + (void)GetEditView()->KeyInput(aFakeDelete); } break; } |