We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d11a13e commit 3e8e6baCopy full SHA for 3e8e6ba
1 file changed
src/app/qgsmaplayerstylecategoriesmodel.cpp
@@ -47,7 +47,7 @@ void QgsMapLayerStyleCategoriesModel::setShowAllCategories( bool showAll )
47
48
QgsMapLayer::StyleCategory QgsMapLayerStyleCategoriesModel::index2category( const QModelIndex &index ) const
49
{
50
- return mCategoryList.at( index.row() - ( mShowAllCategories ? 1 : 0 ) );
+ return mCategoryList.at( index.row() );
51
}
52
53
int QgsMapLayerStyleCategoriesModel::rowCount( const QModelIndex & ) const
0 commit comments