[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#752528: [wxmaxima] segfault when entering parentheses in a dialog



This is fixed in wxmaxima-14.12.1. Here's a patch for wxmaxima-13.04.2:

--- wxmaxima-13.04.2.old/src/BTextCtrl.cpp	2013-01-31 08:52:58.000000000 +0100
+++ wxmaxima-13.04.2/src/BTextCtrl.cpp	2015-05-23 17:47:36.655005042 +0200
@@ -149,5 +149,9 @@
 }
 
 BEGIN_EVENT_TABLE(BTextCtrl, wxTextCtrl)
+#if defined __WXGTK__
+  EVT_KEY_DOWN(BTextCtrl::OnChar)
+#else
   EVT_CHAR(BTextCtrl::OnChar)
+#endif
 END_EVENT_TABLE()

This fixes the crashes, but inserting matching parenthesis works only for ( and not for [,{ or ".


Reply to: