Skip to content

Commit

Permalink
fix a bug when deleting style categories (fixes #12043)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebDieBln committed Nov 28, 2015
1 parent 25c68c6 commit 174a0dd
Showing 1 changed file with 1 addition and 0 deletions.
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 174a0dd

Please sign in to comment.