1
0
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:
RichardAsh1981@gmail.com 2013-09-18 19:48:44 +00:00
parent 81f6306d7f
commit 238bb1594c

View File

@ -644,10 +644,13 @@ void LabelDialog::OnSelectCell(wxGridEvent &event)
t = iter.Next(); t = iter.Next();
} }
RowData *rd; if (!mData.empty())
rd = mData[event.GetRow()]; {
mViewInfo->sel0 = rd->stime; RowData *rd;
mViewInfo->sel1 = rd->etime; rd = mData[event.GetRow()];
mViewInfo->sel0 = rd->stime;
mViewInfo->sel1 = rd->etime;
}
GetActiveProject()->RedrawProject(); GetActiveProject()->RedrawProject();