diff options
| author | jacob1 <jfu614@gmail.com> | 2012-09-19 21:31:18 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-09-25 19:05:28 (GMT) |
| commit | a4f12d367b8575a051705883ea23796607dc5165 (patch) | |
| tree | 8b089fcfbb2a8025c5f09eee7bc496e2d320b7ca /src/interface/Textbox.cpp | |
| parent | bb08de45440408c8775c2f34b87b00c22c49712e (diff) | |
| download | powder-a4f12d367b8575a051705883ea23796607dc5165.zip powder-a4f12d367b8575a051705883ea23796607dc5165.tar.gz | |
Make number boxes easier to use, plus limit deco editor numbers to 255
Diffstat (limited to 'src/interface/Textbox.cpp')
| -rw-r--r-- | src/interface/Textbox.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/interface/Textbox.cpp b/src/interface/Textbox.cpp index ab4d907..afb9fd3 100644 --- a/src/interface/Textbox.cpp +++ b/src/interface/Textbox.cpp @@ -412,10 +412,6 @@ void Textbox::OnVKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool //Remove extra preceding 0's while(backingText[0] == '0' && backingText.length()>1) backingText.erase(backingText.begin()); - - //If there is no content, replace with 0 - if(!backingText.length()) - backingText = "0"; } if(cursor > backingText.length()) cursor = backingText.length(); |
