diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-09 15:30:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-09 15:32:07 +0000 |
commit | 5b3f84cec471ddbde98a46220096cdb952bb1935 (patch) | |
tree | d4459c8bd7b313374490f7373fd258cb2b00e3a2 | |
parent | 368d7a1a40f14c92e06e0d0e6356f24cfb444707 (diff) |
Resolves: tdf#95428 backspace in readonly macro editor hangs
Change-Id: I16568b00e92d18f32818188ba3ab8df92bbd13aa
-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 38b804396d5c..b27605b766b7 100644 --- a/basctl/source/basicide/baside2.cxx +++ b/basctl/source/basicide/baside2.cxx @@ -867,11 +867,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; } |