netpanzer-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netPanzer-CVS] netpanzer/src/Lib/View cInputField.cpp cInputFi...


From: Matthias Braun
Subject: [netPanzer-CVS] netpanzer/src/Lib/View cInputField.cpp cInputFi...
Date: Tue, 11 Nov 2003 08:52:40 -0500

CVSROOT:        /cvsroot/netpanzer
Module name:    netpanzer
Branch:         
Changes by:     Matthias Braun <address@hidden> 03/11/11 08:52:40

Modified files:
        src/Lib/View   : cInputField.cpp cInputField.hpp 

Log message:
        fixed a bug in textfields

Patches:
Index: netpanzer/src/Lib/View/cInputField.cpp
diff -u netpanzer/src/Lib/View/cInputField.cpp:1.14 
netpanzer/src/Lib/View/cInputField.cpp:1.15
--- netpanzer/src/Lib/View/cInputField.cpp:1.14 Tue Nov 11 08:42:07 2003
+++ netpanzer/src/Lib/View/cInputField.cpp      Tue Nov 11 08:52:40 2003
@@ -125,10 +125,10 @@
 {
     // Check if the character should be excluded.
     if (strchr(excludedCharacters, newChar) == 0) {
+        size_t length = strlen(destString) + 1;
+        
         // Add the character.
         destString[cursorPos] = newChar;
-
-        size_t length = strlen(destString) + 1;
         if (length <= maxCharCount) {
             destString[length] = '\0';
         } else {
Index: netpanzer/src/Lib/View/cInputField.hpp
diff -u netpanzer/src/Lib/View/cInputField.hpp:1.9 
netpanzer/src/Lib/View/cInputField.hpp:1.10
--- netpanzer/src/Lib/View/cInputField.hpp:1.9  Tue Nov 11 08:42:08 2003
+++ netpanzer/src/Lib/View/cInputField.hpp      Tue Nov 11 08:52:40 2003
@@ -107,7 +107,7 @@
     void setExcludedCharacters(const char *excludedCharacters);
     void addChar(int newChar);
     void addExtendedChar(int newExtendedChar);
-    void draw(Surface &dest);
+   void draw(Surface &dest);
     void drawHighlighted(Surface &dest);
     void checkCursor();
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]