Silly scope bug. Thanks, gcc

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2005-08-17 18:09:20 +00:00
parent 661c0ff41b
commit 760bca71ab

View File

@ -594,7 +594,8 @@ int Fl_Input_::replace(int b, int e, const char* text, int ilen) {
// 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--;