Author: bgbnbigben
Date: 2011-03-06 05:26:38 -0800 (Sun, 06 Mar 2011)
New Revision: 8509
Log:
...Whoops, poor pointer checking in my last revision, leading to the word
"(null)" being printed. Fixed.
Modified:
trunk/src/FileChooser2.cxx
Modified: trunk/src/FileChooser2.cxx
===================================================================
--- trunk/src/FileChooser2.cxx 2011-03-06 13:19:46 UTC (rev 8508)
+++ trunk/src/FileChooser2.cxx 2011-03-06 13:26:38 UTC (rev 8509)
@@ -506,7 +506,7 @@
if (!fltk::filename_isfile(pathname)) {
filename = strrchr((char*)fileName->text(), '/');
if (filename && filename+1) filename++;
- sprintf(pathname, "%s%s%s", pathname, filename ? "/" : "", filename);
+ sprintf(pathname, "%s%s%s", pathname, filename ? "/" : "", filename ?
filename : "");
}
fileName->value(pathname);
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit