Skip to content

Commit

Permalink
Merge pull request #2510 from SebDieBln/FixDeleteCategories
Browse files Browse the repository at this point in the history
Fix a bug when deleting style categories (fixes #12043)
  • Loading branch information
m-kuhn committed Nov 29, 2015
2 parents 5473c33 + 174a0dd commit 6aabb85
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ bool QgsCategorizedSymbolRendererV2Model::dropMimeData( const QMimeData *data, Q

void QgsCategorizedSymbolRendererV2Model::deleteRows( QList<int> rows )
{
qSort( rows ); // list might be unsorted, depending on how the user selected the rows
for ( int i = rows.size() - 1; i >= 0; i-- )
{
beginRemoveRows( QModelIndex(), rows[i], rows[i] );
Expand Down

0 comments on commit 6aabb85

Please sign in to comment.