2021-07-07 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in sound panels that broke timer countdowns
	during play-out.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-07-07 13:13:42 -04:00
parent 80cf1b47b4
commit 0630d4b6a3
2 changed files with 5 additions and 2 deletions

View File

@ -22015,3 +22015,6 @@
* Fixed a regression in rdlibrary(1) that caused the average * Fixed a regression in rdlibrary(1) that caused the average
length of audio carts to fail to be updated after moving Start length of audio carts to fail to be updated after moving Start
and/or End markers in a cut. and/or End markers in a cut.
2021-07-07 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in sound panels that broke timer countdowns
during play-out.

View File

@ -484,7 +484,7 @@ void RDPanelButton::WriteKeycap(int secs)
} }
} }
else { else {
QString lenstr=RDGetTimeLength(button_active_length+1000,true,false); QString lenstr=RDGetTimeLength(1000*(1+secs),true,false);
p->drawText(size().width()-p->fontMetrics().width(lenstr)- p->drawText(size().width()-p->fontMetrics().width(lenstr)-
RDPANEL_BUTTON_MARGIN-2, RDPANEL_BUTTON_MARGIN-2,
size().height()-2-RDPANEL_BUTTON_MARGIN, size().height()-2-RDPANEL_BUTTON_MARGIN,
@ -492,7 +492,7 @@ void RDPanelButton::WriteKeycap(int secs)
p->setFont(bigLabelFont()); p->setFont(bigLabelFont());
p->drawText((size().width()-p->fontMetrics().width(button_output_text))/2, p->drawText((size().width()-p->fontMetrics().width(button_output_text))/2,
74*size().height()/100, 74*size().height()/100,
button_output_text); button_output_text);
} }
} }
p->end(); p->end();