diff --git a/ChangeLog b/ChangeLog index a8e682bb..e35c2e92 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23175,3 +23175,7 @@ * Added an 'RDRange' class. * Added support for range specifications to the 'line' parameter of the 'GPI Enable' ['GE'] RML. +2022-05-25 Fred Gleason + * Fixed a bug in the Voice Tracker dialog where resizing the window + would cause the relative positions of the markers in the waveform + displays to shift. diff --git a/lib/rdtrackerwidget.cpp b/lib/rdtrackerwidget.cpp index 668e64bc..aa1421fe 100644 --- a/lib/rdtrackerwidget.cpp +++ b/lib/rdtrackerwidget.cpp @@ -2,7 +2,7 @@ // // Rivendell Voice Tracker // -// (C) Copyright 2002-2021 Fred Gleason +// (C) Copyright 2002-2022 Fred Gleason // // 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 @@ -332,7 +332,7 @@ RDTrackerWidget::RDTrackerWidget(QString *import_path,QWidget *parent) d_time_label->setFont(subLabelFont()); d_time_label->setAlignment(Qt::AlignHCenter); d_time_label->setPalette(QPalette(palette().color(QPalette::Background), - palette().mid().color())); + palette().mid().color())); // // Log List @@ -1533,7 +1533,7 @@ void RDTrackerWidget::positionData(int id,int msecs) (msecs<(d_wave_origin[id]+d_wave_width))) { x=(int)(((double)(msecs-d_wave_origin[id]))* ((double)(d_wave_map[id]->size().width()))/ - ((double)TRACKER_START_WIDTH))+10; + ((double)size().width()*(double)TRACKER_START_WIDTH/800.0))+10; if(x>d_scroll_threshold) { d_scrolling=true; } @@ -2263,7 +2263,7 @@ void RDTrackerWidget::LoadTrack(int line) } } } - d_wave_width=TRACKER_START_WIDTH; + d_wave_width=(double)size().width()*(double)TRACKER_START_WIDTH/800.0; } d_start_time=d_log_model->blockStartTime(line); DrawTrackMap(0);