Navigation Menu

Skip to content

Commit

Permalink
[bugfix] unreported crash on load style
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Sep 17, 2018
1 parent 39e1f89 commit 95c99f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmaplayerstylecategoriesmodel.cpp
Expand Up @@ -47,7 +47,7 @@ void QgsMapLayerStyleCategoriesModel::setShowAllCategories( bool showAll )

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

int QgsMapLayerStyleCategoriesModel::rowCount( const QModelIndex & ) const
Expand Down

0 comments on commit 95c99f1

Please sign in to comment.