Fixed erase marker error in the 'Edit Audio' dialog.

This commit is contained in:
Patrick Linstruth 2019-02-25 17:15:33 -08:00
parent b7cdc4f838
commit 87ac2be860
2 changed files with 3 additions and 1 deletions

View File

@ -18508,3 +18508,5 @@
2019-02-19 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdadmin(1) that threw a SQL error when deleting
a host entry.
2019-02-21 Patrick Linstruth <patrick@deltecent.com>
* Fixed erase marker error in the 'Edit Audio' dialog.

View File

@ -2686,7 +2686,7 @@ void RDEditAudio::EraseCursor(int xpos,int ypos,int xsize,int ysize,int chan,
{
int x;
if((edit_hscroll==NULL)||(prev<0)||((prev==0)&&(samp<0))) {
if((edit_hscroll==NULL)||(prev<0)) {
return;
}
x=(int)((double)(samp-edit_hscroll->value())/edit_factor_x);