FLTK logo

[Library] r4524 - branches/branch-1.1/src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[Library] r4524 - branches/branch-1.1/src fltk-dev Aug 17, 2005  
 
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 ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.