diff options
| author | jacob1 <jfu614@gmail.com> | 2012-12-15 18:17:29 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2012-12-15 18:17:29 (GMT) |
| commit | a172a9689783bed4d1fdfa8887f9f4be881b7076 (patch) | |
| tree | 24d71ba0f0affbd5b8e4f5990486170febd918f5 /src/interface/Textbox.cpp | |
| parent | e0f8456531bcd77d0d6a93ccd5815c43ca0d548c (diff) | |
| download | powder-a172a9689783bed4d1fdfa8887f9f4be881b7076.zip powder-a172a9689783bed4d1fdfa8887f9f4be881b7076.tar.gz | |
make sure long amounts of text without spaces doesn't run over out of bounds
A character may be deleted to insert a new line, but when copying something like a url, the missing one is copied back in. I couldn't get inserting a newline between letters to work right
Diffstat (limited to 'src/interface/Textbox.cpp')
| -rw-r--r-- | src/interface/Textbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp index 383f07b..c82b6e4 100644 --- a/src/interface/Textbox.cpp +++ b/src/interface/Textbox.cpp @@ -447,7 +447,7 @@ void Textbox::OnVKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool backingText.erase(backingText.begin()); } if(cursor > backingText.length()) - cursor = backingText.length(); + cursor = backingText.length(); if(changed) { if(masked) |
