From 4a4dc6bbd1c416d9f53a92c9732e345daaf9435c Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Fri, 4 Jul 2025 12:53:45 -0400 Subject: [PATCH] 2025-07-04 Fred Gleason * Fixed a bug in the 'Edit Audio' dialog in rdlibrary(1) that caused a marker to be removed from the view if it was dragged beyond the left hand edge of the view. Signed-off-by: Fred Gleason --- ChangeLog | 4 ++++ lib/rdmarkerview.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4bdaf139..113c7ea4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -25021,3 +25021,7 @@ Web API call. 2025-07-03 Fred Gleason * Incremented the package version to 4.3.0int13. +2025-07-04 Fred Gleason + * Fixed a bug in the 'Edit Audio' dialog in rdlibrary(1) that caused + a marker to be removed from the view if it was dragged beyond the + left hand edge of the view. diff --git a/lib/rdmarkerview.cpp b/lib/rdmarkerview.cpp index bc194188..bc9ed387 100644 --- a/lib/rdmarkerview.cpp +++ b/lib/rdmarkerview.cpp @@ -206,7 +206,7 @@ void RDMarkerHandle::mouseMoveEvent(QGraphicsSceneMouseEvent *e) } if(limit_ptr<0) { // Generate new pointer value - int64_t pframes=(int64_t)(1152*x*view->shrinkFactor()); + int64_t pframes=(int64_t)(1152*(x+1)*view->shrinkFactor()); view->updatePosition(d_role,(int)((int64_t)1000*pframes/ (int64_t)view->sampleRate())); }