diff options
author | Florian Jung <flo@windfisch.org> | 2011-05-11 16:41:11 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-05-11 16:41:11 +0000 |
commit | 1c431bd67567104ba9e026ae75ba479f56d387a2 (patch) | |
tree | 953f7f708eefd8fbac23937a987ad2cce667dd19 /muse2/awl | |
parent | 56b1d339a4176c07d4d995bd8912f1eccddc5539 (diff) | |
parent | 4f2e54561260eb8382953d5723d5d111353a22c9 (diff) |
some housekeeping:
- merged with trunk
- removed note to myself
- some code-cleanups
Diffstat (limited to 'muse2/awl')
-rw-r--r-- | muse2/awl/posedit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/muse2/awl/posedit.cpp b/muse2/awl/posedit.cpp index e9cddd44..6ca49566 100644 --- a/muse2/awl/posedit.cpp +++ b/muse2/awl/posedit.cpp @@ -433,6 +433,8 @@ QValidator::State PosEdit::validate(QString& s,int& /*i*/) const int tb = AL::sigmap.ticksBeat(_pos.tick()); unsigned tm = AL::sigmap.ticksMeasure(_pos.tick()); + if (tm==0) + return QValidator::Invalid; int bm = tm / tb; validator->setRange(1, 9999); |