Mercurial > hg > octave-nkf
changeset 12466:67f98480b181
Use / for fltk path processing only
author | Kai Habel <kai.habel@gmx.de> |
---|---|
date | Mon, 21 Feb 2011 21:15:45 +0100 |
parents | 6b2abcd20fef |
children | 2f83974d5a6d |
files | src/ChangeLog src/DLD-FUNCTIONS/__fltk_uigetfile__.cc |
diffstat | 2 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-02-21 Kai Habel <kai.habel@gmx.de> + + * src/DLD-FUNCTIONS/__fltk_uigetfile__cc: + Use forward slash as file seperator for fltk file path processing only. + 2011-02-21 Kai Habel <kai.habel@gmx.de> * src/DLD-FUNCTIONS/__init_fltk__.cc(plot_window::plot_window):
--- a/src/DLD-FUNCTIONS/__fltk_uigetfile__.cc +++ b/src/DLD-FUNCTIONS/__fltk_uigetfile__.cc @@ -92,7 +92,9 @@ { int file_count = fc.count (); std::string fname; - std::string sep = file_ops::dir_sep_str (); + + //fltk uses forward slash even for windows + std::string sep = "/"; std::size_t idx; if (file_count == 1 && multi_type != Fl_File_Chooser::DIRECTORY)