Skip to content

Commit 95c99f1

Browse files
committedSep 17, 2018
[bugfix] unreported crash on load style
1 parent 39e1f89 commit 95c99f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsmaplayerstylecategoriesmodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void QgsMapLayerStyleCategoriesModel::setShowAllCategories( bool showAll )
4747

4848
QgsMapLayer::StyleCategory QgsMapLayerStyleCategoriesModel::index2category( const QModelIndex &index ) const
4949
{
50-
return mCategoryList.at( index.row() - ( mShowAllCategories ? 0 : 1 ) );
50+
return mCategoryList.at( index.row() - ( mShowAllCategories ? 1 : 0 ) );
5151
}
5252

5353
int QgsMapLayerStyleCategoriesModel::rowCount( const QModelIndex & ) const

0 commit comments

Comments
 (0)
Please sign in to comment.