Fix a bug : KissCount crash or do something wrong when selecting multiple columns for group/ungroup operations

This commit is contained in:
Grégory Soutadé 2018-10-03 17:52:40 +02:00
parent a3a3a8499f
commit 74528b4a00
1 changed files with 11 additions and 0 deletions

View File

@ -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)