Patch #1914 2007-03-01 17:40

stahta01

Patch Class Wizard plugin for wxW28 with disable_compat26
Download
1914-Patch_Class_Wi.patch (531 bytes)
Category
Plugin::Refinement
Status
Accepted
Close date
2007-03-27 11:03
Assigned to
mandrav
Index: src/plugins/classwizard/classwizarddlg.cpp
===================================================================
--- src/plugins/classwizard/classwizarddlg.cpp    (revision 3652)
+++ src/plugins/classwizard/classwizarddlg.cpp    (working copy)
@@ -83,7 +83,7 @@
     if (prj)
           XRCCTRL(*this, "txtBaseDir", wxTextCtrl)->SetValue(prj->GetBasePath());
     else
-          XRCCTRL(*this, "txtBaseDir", wxTextCtrl)->SetValue(wxGetWorkingDirectory());
+          XRCCTRL(*this, "txtBaseDir", wxTextCtrl)->SetValue(::wxGetCwd());
 }
 
 
stahta01 2007-03-01 17:40

Filename: disable_compat26_classwizard-unix.patch

Purpose: Change Class Wizard files to improve support for wxWidgets 2.8 with option disable_compat26.

Problem 1: Method wxGetWorkingDirectory() was removed.

Reference 1: wx/filefn.h

Solution 1: Replaced wxGetWorkingDirectory() with ::wxGetCwd()

mandrav 2007-03-27 11:03

Patch applied.