Author: fabien
Date: 2008-02-22 15:00:05 -0800 (Fri, 22 Feb 2008)
New Revision: 6041
Log:
applying STR#1863 (fltk::input() do not return 0 after the Cancel button was
pressed) fix.
Modified:
trunk/src/message.cxx
Modified: trunk/src/message.cxx
===================================================================
--- trunk/src/message.cxx 2008-02-22 22:50:59 UTC (rev 6040)
+++ trunk/src/message.cxx 2008-02-22 23:00:05 UTC (rev 6041)
@@ -429,7 +429,7 @@
const char* defstr, uchar type) {
int r = innards("?", defstr ? defstr : "", type,
fmt, ap, fltk::cancel, fltk::ok, 0);
- return r>=0 ? textfield->text() : 0;
+ return r>0 ? textfield->text() : 0;
}
/*!
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit