Skip to content

Commit

Permalink
'Double whistle' special effect can be placed out of range (fixes #48).
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaldispuehl committed Jul 19, 2018
1 parent c703106 commit 4adec73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ retorte laboratories (retorte.ch) IntervalMusicCompositor change log
--------------------------------------------------------------------------------
ADD #47 Reduce / adapt volume of break track.
FIX #46 BPM dialog: Music should stop when dialog is closed.
FIX #48 'Double whistle' special effect can be placed out of range.


2017-11-16 2.8.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void updateSpinnerSizeWith(int maximalTrackDuration) {
}

private int getLatestStartTimeWith(int maximalTrackDuration) {
return maximalTrackDuration - (int)(soundEffectOccurrence.getSoundEffect().getDurationMillis() / 1000.0);
return maximalTrackDuration - (int) Math.ceil(soundEffectOccurrence.getSoundEffect().getDurationMillis() / 1000.0);
}

private void updateSelectedSoundEffect() {
Expand Down

0 comments on commit 4adec73

Please sign in to comment.