summaryrefslogtreecommitdiff
path: root/muse2/awl
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-05-08 21:20:35 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-05-08 21:20:35 +0000
commitc00e79dd68a68ab0ec30034612d3c8826107b8db (patch)
treeca92cbea4eacdf26eb8ac799075b3be7381467cc /muse2/awl
parent27cc37410cf3d0994f105fbadf135e6a43a440eb (diff)
structure menu fixes
Diffstat (limited to 'muse2/awl')
-rw-r--r--muse2/awl/posedit.cpp2
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);