Iterate backwards to pick the last valid list in select_link_list
This commit is contained in:
parent
23c16f8e67
commit
66666a75b0
|
@ -464,11 +464,13 @@ public:
|
||||||
mark_dirty(row, col);
|
mark_dirty(row, col);
|
||||||
|
|
||||||
m_active = nullptr;
|
m_active = nullptr;
|
||||||
for (auto& o : m_info.lists) {
|
// When there are multiple source versions there could be multiple
|
||||||
if (o.table_ndx == current_table() && o.row_ndx == row && o.col_ndx == col) {
|
// change objects for a single LinkView, in which case we need to use
|
||||||
m_active = o.changes;
|
// the last one
|
||||||
// need to use last match for multiple source version logic
|
for (auto it = m_info.lists.rbegin(), end = m_info.lists.rend(); it != end; ++it) {
|
||||||
// break;
|
if (it->table_ndx == current_table() && it->row_ndx == row && it->col_ndx == col) {
|
||||||
|
m_active = it->changes;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue