From 36f73110ebaf35489876394f15adb8e240375c9e Mon Sep 17 00:00:00 2001 From: Jonas Pfenniger Date: Tue, 12 Oct 2010 12:13:45 +0200 Subject: [PATCH] Fix crash in editview (Ticket: #325) --- plugins/edit_view_swt/lib/edit_view_swt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/edit_view_swt/lib/edit_view_swt.rb b/plugins/edit_view_swt/lib/edit_view_swt.rb index 3627063f2..1bc94a4b8 100644 --- a/plugins/edit_view_swt/lib/edit_view_swt.rb +++ b/plugins/edit_view_swt/lib/edit_view_swt.rb @@ -147,7 +147,7 @@ def record_action(event) action = st.getKeyBinding(event.character | event.stateMask) if (action == Swt::SWT::NULL) # see if we have a control character - if ((event.stateMask & SWT.CTRL) != 0 && event.character <= 31) + if ((event.stateMask & Swt::SWT::CTRL) != 0 && event.character <= 31) # get the character from the CTRL+char sequence, the control # key subtracts 64 from the value of the key that it modifies c = event.character + 64