diff --git a/ChangeLog b/ChangeLog index 0ec091fd..a5067dda 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23290,3 +23290,6 @@ 2022-09-11 Fred Gleason * Fixed a regression in rdadmin(1) that made it impossible to set a 'Startup Cart' button using the 'Select' button. +2022-09-13 Fred Gleason + * Fixed a bug in rdlibrary(1) that ccould cause the waveform display + in the 'Edit Audio' dialog to truncate the end of the waveform. diff --git a/lib/rdmarkerview.cpp b/lib/rdmarkerview.cpp index 326bc1e1..68b0f77b 100644 --- a/lib/rdmarkerview.cpp +++ b/lib/rdmarkerview.cpp @@ -686,7 +686,7 @@ bool RDMarkerView::setCut(QString *err_msg,unsigned cartnum,int cutnum) while(d_wave_factory->energySize()>=(d_width*d_max_shrink_factor)) { d_max_shrink_factor=d_max_shrink_factor*2; } - d_pad_size=(d_width*d_max_shrink_factor-d_wave_factory->energySize())/d_max_shrink_factor-1; + d_pad_size=64+(d_width*d_max_shrink_factor-d_wave_factory->energySize())/d_max_shrink_factor-1; d_shrink_factor=d_max_shrink_factor; WriteWave();