forked from Ivasoft/DSView
fix: sometimes,after decode task redo, annotation table visit error
This commit is contained in:
@@ -126,7 +126,9 @@ int AnnotationResTable::MakeIndex(const std::string &key, AnnotationSourceItem*
|
||||
}
|
||||
|
||||
AnnotationSourceItem* AnnotationResTable::GetItem(int index){
|
||||
assert(index >= 0 && index < m_resourceTable.size());
|
||||
if (index < 0 || index >= (int)m_resourceTable.size()){
|
||||
assert(false);
|
||||
}
|
||||
return m_resourceTable[index];
|
||||
}
|
||||
|
||||
|
||||
@@ -1442,6 +1442,7 @@ void SigSession::rst_decoder(int index)
|
||||
|
||||
if (trace && trace->create_popup() ){
|
||||
remove_decode_task(trace); //remove old task
|
||||
trace->decoder()->clear();
|
||||
add_decode_task(trace);
|
||||
data_updated();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user