summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-08-17 18:09:20 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-08-17 18:09:20 +0000
commit760bca71abe9e35e393c05404672d362b463128e (patch)
tree3daff224ff5d0ad3f6d287c9582f83f02f603624 /src
parent661c0ff41b03c54232abe6ad85d5be36d076961f (diff)
Silly scope bug. Thanks, gcc
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4524 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Input_.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index 1792a3fc6..142870bec 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -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--;