|
|
Author: manolo
Date: 2011-09-04 06:50:31 -0700 (Sun, 04 Sep 2011)
New Revision: 9029
Log:
Fixed Mac OS crash when using Fl_Native_File_Chooser with filter that does not end with \n.
Modified:
branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm
Modified: branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm
===================================================================
--- branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm 2011-09-02 21:01:28 UTC (rev 9028)
+++ branches/branch-1.3/src/Fl_Native_File_Chooser_MAC.mm 2011-09-04 13:50:31 UTC (rev 9029)
@@ -399,7 +399,7 @@
}
rank++;
*(q++) = '\n';
- if (*p) p = r + 1;
+ if (*r) p = r + 1; else p = r;
} while(*p);
*q = 0;
return t;
[ Direct Link to Message ] | |
|
| |