summaryrefslogtreecommitdiff
path: root/databases/pgadmin3/files/patch-wxgtk3
blob: e3b0cbfe211c1081e83457f6e1fcbc852c6aaaed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
*** pgadmin/frm/frmQuery.cpp.orig	Thu Jan  7 15:47:32 2016
--- pgadmin/frm/frmQuery.cpp	Sat May 25 18:03:04 2019
***************
*** 1795,1800 ****
--- 1795,1805 ----
  
  void frmQuery::OnPositionStc(wxStyledTextEvent &event)
  {
+ 	CallAfter(&frmQuery::DoUpdatePositionStc,event);
+ }
+ 
+ void frmQuery::DoUpdatePositionStc(const wxStyledTextEvent &event)
+ {
  	int selFrom, selTo, selCount;
  	sqlQuery->GetSelection(&selFrom, &selTo);
  	selCount = selTo - selFrom;
*** pgadmin/include/frm/frmQuery.h.orig	Thu Jan  7 15:47:32 2016
--- pgadmin/include/frm/frmQuery.h	Sat May 25 18:03:56 2019
***************
*** 171,176 ****
--- 171,177 ----
  
  	void OnChangeStc(wxStyledTextEvent &event);
  	void OnPositionStc(wxStyledTextEvent &event);
+ 	void DoUpdatePositionStc(const wxStyledTextEvent &event);
  	void OnClose(wxCloseEvent &event);
  	void OnSetFocus(wxFocusEvent &event);
  	void OnContents(wxCommandEvent &event);