aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authorbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-03-09 21:20:15 +0000
committerbrunzelchen <brunzelchen@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-03-09 21:20:15 +0000
commit06f4ffa99c00200197958406a2b016a8a6b050ba (patch)
tree415d098ff9bddd5bc17896121b490f1263f20119 /Game/Code
parent738edfb248ddb9c8b7f2d5633f1b3722f0600a17 (diff)
downloadusdx-06f4ffa99c00200197958406a2b016a8a6b050ba.tar.gz
usdx-06f4ffa99c00200197958406a2b016a8a6b050ba.tar.xz
usdx-06f4ffa99c00200197958406a2b016a8a6b050ba.zip
bugfix for bpm-edit-mode
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/1.0.1 Challenge MOD@2190 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code')
-rw-r--r--Game/Code/Screens/UScreenEditSub.pas7
1 files changed, 5 insertions, 2 deletions
diff --git a/Game/Code/Screens/UScreenEditSub.pas b/Game/Code/Screens/UScreenEditSub.pas
index d7c2859a..43720c8d 100644
--- a/Game/Code/Screens/UScreenEditSub.pas
+++ b/Game/Code/Screens/UScreenEditSub.pas
@@ -1168,8 +1168,11 @@ begin
SDLK_BACKSPACE:
begin
strBPM := Text[TextBPM].Text;
- Delete(strBPM, Length(strBPM)-1, 2);
- Text[TextBPM].Text := strBPM + '|';
+ if Length(strBPM)>1 then
+ begin
+ Delete(strBPM, Length(strBPM)-1, 2);
+ Text[TextBPM].Text := strBPM + '|';
+ end;
end;
end;
end;