From 1a0b462a74a04670309c00f45fbc8d4147266c93 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Wed, 15 Jan 2003 02:28:56 +0000 Subject: [PATCH] We might want to return relative file names under Windows to overcome the silly /cygdrive/ stuff. Anyway, I leave this as a comment right now. --- Fltk/Callbacks.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Fltk/Callbacks.cpp b/Fltk/Callbacks.cpp index 608823fd42..0a2de56c10 100644 --- a/Fltk/Callbacks.cpp +++ b/Fltk/Callbacks.cpp @@ -1,4 +1,4 @@ -// $Id: Callbacks.cpp,v 1.158 2002-11-25 04:39:42 geuzaine Exp $ +// $Id: Callbacks.cpp,v 1.159 2003-01-15 02:28:56 geuzaine Exp $ // // Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle // @@ -113,6 +113,13 @@ int file_chooser(int multi, const char* message, const char* pat, int patindex){ } char* file_chooser_get_name(int num){ + //we could use this the ease the pain on windows + //(/c/cygdrive/... absolute paths are not recognized by windows) + + //static char retname[1024]; + //fl_filename_relative(retname, sizeof(retname), fc->value(num)); + //return retname; + return (char*)fc->value(num); } -- GitLab