From 87ac2be8606967d9671e2ee5e0d9166854361878 Mon Sep 17 00:00:00 2001 From: Patrick Linstruth Date: Mon, 25 Feb 2019 17:15:33 -0800 Subject: [PATCH] Fixed erase marker error in the 'Edit Audio' dialog. --- ChangeLog | 2 ++ lib/rdedit_audio.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7a9a4d1d..a351bd1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18508,3 +18508,5 @@ 2019-02-19 Fred Gleason * Fixed a bug in rdadmin(1) that threw a SQL error when deleting a host entry. +2019-02-21 Patrick Linstruth + * Fixed erase marker error in the 'Edit Audio' dialog. diff --git a/lib/rdedit_audio.cpp b/lib/rdedit_audio.cpp index bda8f9ab..58fbb2df 100644 --- a/lib/rdedit_audio.cpp +++ b/lib/rdedit_audio.cpp @@ -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);