summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-27 01:49:30 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-27 01:49:30 +0100
commit8cb200670cbb98cff22695b1e693533d1160911d (patch)
treeb5ed9ded5ee6928b0901a18ccbe46db50e0f8019 /src
parent010610c56198b913eca0f25d44f0e1c58e158b72 (diff)
boost filesystem hack.
Diffstat (limited to 'src')
-rw-r--r--src/wx/dir_picker_ctrl.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wx/dir_picker_ctrl.cc b/src/wx/dir_picker_ctrl.cc
index 4cd7c3d15..05b680288 100644
--- a/src/wx/dir_picker_ctrl.cc
+++ b/src/wx/dir_picker_ctrl.cc
@@ -53,7 +53,11 @@ DirPickerCtrl::SetPath (wxString p)
if (_path == wxStandardPaths::Get().GetDocumentsDir()) {
_folder->SetLabel (_("My Documents"));
} else {
+#if BOOST_FILESYSTEM_VERSION == 3
_folder->SetLabel (std_to_wx (filesystem::path (wx_to_std (_path)).leaf().string()));
+#else
+ _folder->SetLabel (std_to_wx (filesystem::path (wx_to_std (_path)).leaf()));
+#endif
}
}