2018-01-08 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug that broke highlighting of evergreen cuts.
This commit is contained in:
Fred Gleason 2018-01-08 10:30:28 -05:00
parent 7453013656
commit 6db1e6ca5e
2 changed files with 4 additions and 2 deletions

View File

@ -16559,3 +16559,5 @@
* Fixed races in creation of new carts.
2018-01-05 Fred Gleason <fredg@paravelsystems.com>
* Fixed bugs that broke the build under Windows.
2018-01-08 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug that broke highlighting of evergreen cuts.

View File

@ -2,7 +2,7 @@
//
// Validate a Rivendell Audio Cut
//
// (C) Copyright 2006,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2006,2016-2018 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -68,7 +68,7 @@ RDCart::Validity ValidateCut(RDSqlQuery *q,unsigned offset,
if(q->value(offset).toInt()==0) { // Length
return prev_validity;
}
if(q->value(offset+1+2).toString()=="Y") { // Evergreen
if(q->value(offset+1).toString()=="Y") { // Evergreen
return RDCart::EvergreenValid;
}
if(q->value(offset+5+datetime.date().dayOfWeek()).toString()!="Y") {