mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 15:09:08 +02:00
Patch to avoid dereferences of invalid items by Campbell Barton, tested by Steve the Fiddle
This commit is contained in:
parent
81f6306d7f
commit
238bb1594c
@ -644,10 +644,13 @@ void LabelDialog::OnSelectCell(wxGridEvent &event)
|
||||
t = iter.Next();
|
||||
}
|
||||
|
||||
RowData *rd;
|
||||
rd = mData[event.GetRow()];
|
||||
mViewInfo->sel0 = rd->stime;
|
||||
mViewInfo->sel1 = rd->etime;
|
||||
if (!mData.empty())
|
||||
{
|
||||
RowData *rd;
|
||||
rd = mData[event.GetRow()];
|
||||
mViewInfo->sel0 = rd->stime;
|
||||
mViewInfo->sel1 = rd->etime;
|
||||
}
|
||||
|
||||
GetActiveProject()->RedrawProject();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user