Merge lp:~yrke/tapaal/fix1891635-fixStepAnimationHistory into lp:tapaal

Proposed by Kenneth Yrke Jørgensen on 2020-08-24
Status: Merged
Approved by: Jiri Srba on 2020-08-24
Approved revision: 1087
Merged at revision: 1088
Proposed branch: lp:~yrke/tapaal/fix1891635-fixStepAnimationHistory
Merge into: lp:tapaal
Diff against target: 22 lines (+1/-2)
1 file modified
src/pipe/gui/AnimationHistorySidePanel.java (+1/-2)
To merge this branch: bzr merge lp:~yrke/tapaal/fix1891635-fixStepAnimationHistory
Reviewer Review Type Date Requested Status
Jiri Srba 2020-08-24 Approve on 2020-08-24
Review via email: mp+389716@code.launchpad.net
To post a comment you must log in.
Jiri Srba (srba) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/pipe/gui/AnimationHistorySidePanel.java'
2--- src/pipe/gui/AnimationHistorySidePanel.java 2020-05-18 09:02:54 +0000
3+++ src/pipe/gui/AnimationHistorySidePanel.java 2020-08-24 13:14:28 +0000
4@@ -36,17 +36,16 @@
5 if (SwingUtilities.isLeftMouseButton(e)) {
6 int selected = animBox.getSelectedIndex();
7 int clicked = animBox.locationToIndex(e.getPoint());
8+
9 if (clicked != -1) {
10 int steps = clicked - selected;
11 Animator anim = CreateGui.getAnimator();
12 if (steps < 0) {
13 for (int i = 0; i < Math.abs(steps); i++) {
14- animBox.stepBackwards();
15 anim.stepBack();
16 }
17 } else {
18 for (int i = 0; i < Math.abs(steps); i++) {
19- animBox.stepForward();
20 anim.stepForward();
21 }
22 }

Subscribers

People subscribed via source and target branches