# HG changeset patch # User Chris Cannam # Date 1427215255 0 # Node ID 271e729c818b0428afe09b8c26130f1c98a3bfc1 # Parent bfeabe25a1a3a732a5e791c52f0ee01aeccd2dc1 Fix to pointer-pos-to-level logic diff -r bfeabe25a1a3 -r 271e729c818b widgets/LevelPanWidget.cpp --- a/widgets/LevelPanWidget.cpp Tue Mar 24 16:08:36 2015 +0000 +++ b/widgets/LevelPanWidget.cpp Tue Mar 24 16:40:55 2015 +0000 @@ -176,7 +176,7 @@ int npan = maxPan * 2 + 1; int nlevel = maxLevel + 1; double wcell = w / npan, hcell = h / nlevel; - level = int((h - loc.y()) / hcell) + 1; + level = int((h - loc.y()) / hcell); if (level < 0) level = 0; if (level > maxLevel) level = maxLevel; pan = int(loc.x() / wcell) - maxPan;