SHA256
1
0
forked from pool/4pane
4pane/0001-Fix-a-wxAssert-when-showing-the-Command-line-termina.patch
Luigi Baldoni 81ab9b5187 Accepting request 999180 from home:alois:branches:X11:Utilities
- Added 0001-Compilation-fixes-for-wxWidgets-3.1.6.patch,
  0001-Compilation-fix-for-wxWidgets-3.1.5.patch,
  0001-Fix-a-wx-assert-complaining-that-a-panel-was-being-a.patch,
  0001-Fix-a-wxAssert-when-showing-the-Command-line-termina.patch,
  and
  0001-Prevent-a-wx-build-warning-about-wxPATH_NORM_ALL-bei.patch
  to fix build with wxWidgets 3.2

OBS-URL: https://build.opensuse.org/request/show/999180
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/4pane?expand=0&rev=20
2022-08-25 07:21:42 +00:00

27 lines
1.3 KiB
Diff

From ad558ca953b635f4491973cfe63b6d78cb696f1c Mon Sep 17 00:00:00 2001
From: dghart <dghart@users.sourceforge.net>
Date: Sun, 13 Feb 2022 14:12:51 +0000
Subject: [PATCH] Fix a wxAssert when showing the Command-line terminal
"Must have wxTE_PROCESS_ENTER for wxEVT_TEXT_ENTER to work", though it seemed fine without it :/
---
Tools.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Tools.h b/Tools.h
index e01a97f..e1beb36 100644
--- a/Tools.h
+++ b/Tools.h
@@ -378,7 +378,7 @@ class TerminalEm : public TextCtrlBase // Derive from this so that (in gtk2)
public:
TerminalEm(){};
TerminalEm(wxWindow* parent, wxWindowID id, const wxString& value = wxT(""), bool multline = true, const wxPoint& pos = wxDefaultPosition,
- const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxT("TerminalEm"))
+ const wxSize& size = wxDefaultSize, long style = wxTE_PROCESS_ENTER, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxT("TerminalEm"))
: TextCtrlBase(parent, id, value, multline, pos, size, style, validator, name), multiline(multline) { Init(); }
~TerminalEm();
void Init(); // Do the ctor work here, as otherwise wouldn't be done under xrc
--
2.37.2