mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-06 00:05:02 -05:00
fix a bug when deleting style categories (fixes #12043)
This commit is contained in:
parent
25c68c6701
commit
174a0ddeb7
@ -309,6 +309,7 @@ bool QgsCategorizedSymbolRendererV2Model::dropMimeData( const QMimeData *data, Q
|
|||||||
|
|
||||||
void QgsCategorizedSymbolRendererV2Model::deleteRows( QList<int> rows )
|
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-- )
|
for ( int i = rows.size() - 1; i >= 0; i-- )
|
||||||
{
|
{
|
||||||
beginRemoveRows( QModelIndex(), rows[i], rows[i] );
|
beginRemoveRows( QModelIndex(), rows[i], rows[i] );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user