From 9a5db7b408ccef26b39a66a8ce2340984c699a68 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Mon, 16 Oct 2017 11:51:34 -0400 Subject: [PATCH] 2017-10-16 Fred Gleason * Fixed a bug in 'RDCut::autoSegue()' that caused an error when setting segues by level [Github issue #000182]. --- ChangeLog | 3 +++ lib/rdcut.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 71a4027b..08b07a73 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16159,3 +16159,6 @@ 2017-10-16 Fred Gleason * Removed policy to update cut expiration date/time automatically upon audio update. +2017-10-16 Fred Gleason + * Fixed a bug in 'RDCut::autoSegue()' that caused an error when + setting segues by level [Github issue #000182]. diff --git a/lib/rdcut.cpp b/lib/rdcut.cpp index 807cce63..b424834b 100644 --- a/lib/rdcut.cpp +++ b/lib/rdcut.cpp @@ -1352,7 +1352,7 @@ void RDCut::autoSegue(int level,int length,RDStation *station,RDUser *user, RDTrimAudio *trim=new RDTrimAudio(station,config); trim->setCartNumber(cart_number); trim->setCutNumber(cut_number); - trim->setTrimLevel(level); + trim->setTrimLevel(100*level); if(trim->runTrim(user->name(),user->password())==RDTrimAudio::ErrorOk) { if((point=trim->endPoint())>=0) { setSegueStartPoint(trim->endPoint());