File: wx3.2-compat.patch

package info (click to toggle)
ctsim 6.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,868 kB
  • sloc: cpp: 26,967; sh: 7,782; ansic: 1,256; perl: 296; makefile: 148
file content (17 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Fix to work with wxWidgets 3.2
Author: Scott Talbert <swt@techie.net>
Last-Update: 2022-09-15
Bug-Debian: https://bugs.debian.org/1019764
Forwarded: no

--- a/src/ctsim.cpp
+++ b/src/ctsim.cpp
@@ -148,7 +148,7 @@ CTSimApp::OnInit()
   openConfig();
 
   g_bRunningWXWindows = true;
-  m_docManager = new wxDocManager (wxDEFAULT_DOCMAN_FLAGS, true);
+  m_docManager = new wxDocManager (0, true);
 
   m_pDocTemplImage = new wxDocTemplate (m_docManager, _T("ImageFile"), _T("*.if"), _T(""), _T("if"), _T("ImageFile"), _T("ImageView"), CLASSINFO(ImageFileDocument), CLASSINFO(ImageFileView));
   m_pDocTemplProjection = new wxDocTemplate (m_docManager, _T("ProjectionFile"), _T("*.pj"), _T(""), _T("pj"), _T("ProjectionFile"), _T("ProjectionView"), CLASSINFO(ProjectionFileDocument), CLASSINFO(ProjectionFileView));