summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-03-09 15:30:51 +0000
committerAndras Timar <andras.timar@collabora.com>2016-03-17 14:25:54 +0100
commite28f66eb4b225e70d68b64f4e661fabc39111cbe (patch)
treeb024b1801c491e5e2bc7260dc3217c32f2bbb859 /basctl
parent10064d0adcce6207ef6a53cfc4858463f6c04fb7 (diff)
Resolves: tdf#95428 backspace in readonly macro editor hangs
Change-Id: I16568b00e92d18f32818188ba3ab8df92bbd13aa (cherry picked from commit 5b3f84cec471ddbde98a46220096cdb952bb1935) Reviewed-on: https://gerrit.libreoffice.org/23088 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit 5c81d2d556a4e3b24440b4f917e0d0b720a0d719)
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/baside2.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index d602a7439d37..891c7f600658 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -894,11 +894,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;
}