|
|
Author: matt
Date: 2005-08-17 14:09:20 -0400 (Wed, 17 Aug 2005)
New Revision: 4524
Modified:
branches/branch-1.1/src/Fl_Input_.cxx
Log:
Silly scope bug. Thanks, gcc
Modified: branches/branch-1.1/src/Fl_Input_.cxx
===================================================================
--- branches/branch-1.1/src/Fl_Input_.cxx 2005-08-17 12:07:34 UTC (rev 4523)
+++ branches/branch-1.1/src/Fl_Input_.cxx 2005-08-17 18:09:20 UTC (rev 4524)
@@ -594,7 +594,8 @@
// but it is too hard to figure out for now...
if (wrap()) {
// if there is a space in the pasted text, the whole line may have rewrapped
- for (int i=0; i<ilen; i++)
+ int i;
+ for (i=0; i<ilen; i++)
if (text[i]==' ') break;
if (i==ilen)
while (b > 0 && !isspace(index(b) & 255) && index(b)!='\n') b--;
[ Direct Link to Message ] | |
|
| |