mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-01 15:43:44 +02:00
Bug1428: Don't make negative label start time from label edit dialog
This commit is contained in:
parent
ed2432e02d
commit
c3b4ea165f
@ -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"),
|
||||
|
@ -956,7 +956,7 @@ void NumericConverter::SetMinValue(double minValue)
|
||||
|
||||
void NumericConverter::ResetMinValue()
|
||||
{
|
||||
mMinValue = std::numeric_limits<double>::min();
|
||||
mMinValue = 0.0;
|
||||
}
|
||||
|
||||
void NumericConverter::SetMaxValue(double maxValue)
|
||||
|
Loading…
x
Reference in New Issue
Block a user