mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-07 20:22:13 +01:00
Bug1428: Don't make negative label start time from label edit dialog
This commit is contained in:
@@ -769,7 +769,7 @@ void LabelDialog::OnChangeLabel(wxGridEvent & WXUNUSED(event), int row, RowData
|
||||
void LabelDialog::OnChangeStime(wxGridEvent & WXUNUSED(event), int row, RowData *rd)
|
||||
{
|
||||
// Remember the value...no need to repopulate
|
||||
double t;
|
||||
double t {};
|
||||
mGrid->GetCellValue(row, Col_Stime).ToDouble(&t);
|
||||
rd->selectedRegion.setT0(t, false);
|
||||
mGrid->SetCellValue(row, Col_Etime, wxString::Format(wxT("%g"),
|
||||
@@ -781,7 +781,7 @@ void LabelDialog::OnChangeStime(wxGridEvent & WXUNUSED(event), int row, RowData
|
||||
void LabelDialog::OnChangeEtime(wxGridEvent & WXUNUSED(event), int row, RowData *rd)
|
||||
{
|
||||
// Remember the value...no need to repopulate
|
||||
double t;
|
||||
double t {};
|
||||
mGrid->GetCellValue(row, Col_Etime).ToDouble(&t);
|
||||
rd->selectedRegion.setT1(t, false);
|
||||
mGrid->SetCellValue(row, Col_Stime, wxString::Format(wxT("%g"),
|
||||
|
||||
Reference in New Issue
Block a user