File wx3.0-compat.patch of Package ebook2cwgui
Description: Fix to build with wxWidgets 3.0
Author: Olly Betts <olly@survex.com>
Last-Update: 2014-03-13
--- ebook2cwgui-0.1.2.orig/ebook2cwgui.cpp
+++ ebook2cwgui-0.1.2/ebook2cwgui.cpp
@@ -679,8 +679,7 @@ wxString Ebook2cw::FindConfigFile () {
/* Otherwise where it "should" be; create if not there */
wxString dir;
- wxStandardPaths stdPaths;
- dir = stdPaths.GetUserConfigDir();
+ dir = wxStandardPaths::Get().GetUserConfigDir();
#ifdef __WXMSW__
if (!wxDirExists(dir + wxT("\\ebook2cw"))) {