13
0

use newly added operator bool() for Evoral::Beats rather than double-negation as boolean

This commit is contained in:
Paul Davis 2015-05-20 08:16:29 -04:00
parent 16c34acc88
commit 15b3ad956d

View File

@ -2987,7 +2987,7 @@ MidiRegionView::trim_note (NoteBase* event, Evoral::Beats front_delta, Evoral::B
if negative - move the end of the note earlier in time (shortening it)
*/
if (!!front_delta) {
if (front_delta) {
if (front_delta < 0) {
if (event->note()->time() < -front_delta) {