Merge pull request #2510 from SebDieBln/FixDeleteCategories

Fix a bug when deleting style categories (fixes #12043)
This commit is contained in:
Matthias Kuhn 2015-11-29 16:25:22 +01:00
commit 6aabb8561b

View File

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