Fix a bug : KissCount crash or do something wrong when selecting multiple columns for group/ungroup operations
This commit is contained in:
parent
a3a3a8499f
commit
74528b4a00
|
@ -1318,6 +1318,12 @@ void GridAccount::Group()
|
|||
for (int i = 0; i < selected.size(); ++i)
|
||||
{
|
||||
row = selected[i].row();
|
||||
|
||||
it = std::find(rows.begin(), rows.end(), row);
|
||||
|
||||
if (it != rows.end())
|
||||
continue;
|
||||
|
||||
op = _displayedOperations[row] ;
|
||||
|
||||
if (op.id)
|
||||
|
@ -1494,6 +1500,11 @@ void GridAccount::UnGroup()
|
|||
|
||||
for (int i = 0; i < selected.size(); ++i)
|
||||
{
|
||||
it = std::find(rows.begin(), rows.end(), selected[i].row());
|
||||
|
||||
if (it != rows.end())
|
||||
continue;
|
||||
|
||||
op = _displayedOperations[selected[i].row()] ;
|
||||
|
||||
if (op.id)
|
||||
|
|
Loading…
Reference in New Issue
Block a user