diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-07-27 01:49:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-07-27 01:49:30 +0100 |
| commit | 8cb200670cbb98cff22695b1e693533d1160911d (patch) | |
| tree | b5ed9ded5ee6928b0901a18ccbe46db50e0f8019 /src | |
| parent | 010610c56198b913eca0f25d44f0e1c58e158b72 (diff) | |
boost filesystem hack.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/dir_picker_ctrl.cc | 4 |
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 } } |
