small fixes

This commit is contained in:
Honfika
2014-04-30 16:08:39 +02:00
parent 93e3934d0a
commit 55fdd05ea7
4 changed files with 19 additions and 12 deletions
@@ -248,8 +248,9 @@ public class TimelineBodyPanel extends JPanel implements MouseListener {
if (p.x >= timeLine.getFrameCount()) {
p.x = timeLine.getFrameCount() - 1;
}
if (p.y > timeLine.getMaxDepth()) {
p.y = timeLine.getMaxDepth();
int maxDepth = timeLine.getMaxDepth();
if (p.y > maxDepth) {
p.y = maxDepth;
}
frameSelect(p.x, p.y);
}