Group :: Development/C++
RPM: codeblocks
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0001-Fix-build-with-wxWidgets-3.1.4.patch
Download
Download
From 2a98c647d91314fb681c3e3be22c5eec257aec10 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Mon, 17 Aug 2020 21:21:47 +0300
Subject: [PATCH] Fix build with wxWidgets 3.1.4
---
src/src/main.cpp | 5 +++--
src/src/watchesdlg.cpp | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/src/main.cpp b/src/src/main.cpp
index 9d6ed6a..fb60089 100644
--- a/src/src/main.cpp
+++ b/src/src/main.cpp
@@ -2679,8 +2679,9 @@ bool MainFrame::OnDropFiles(wxCoord /*x*/, wxCoord /*y*/, const wxArrayString& f
else
{
wxBusyCursor useless;
- wxPaintEvent e;
- ProcessEvent(e);
+ // wxPaintEvent e;
+ // ProcessEvent(e);
+ Update();
for (unsigned int i = 0; i < files.GetCount(); ++i)
success &= OpenGeneric(files[i]);
}
diff --git a/src/src/watchesdlg.cpp b/src/src/watchesdlg.cpp
index 505d2bf..9faafe6 100644
--- a/src/src/watchesdlg.cpp
+++ b/src/src/watchesdlg.cpp
@@ -103,7 +103,7 @@ public:
cb_unused const wxPoint& pos,
cb_unused const wxSize& sz) const override
{
- wxPGWindowList const list;
+ wxPGWindowList const list(NULL);
return list;
}
void UpdateControl(cb_unused wxPGProperty* property, cb_unused wxWindow* ctrl) const override {}
--
2.28.0