Skip to content
Permalink
Browse files

[bugfix] unreported crash on load style

  • Loading branch information
elpaso committed Sep 17, 2018
1 parent 39e1f89 commit 95c99f135f4096e6731b3f591dbaa179b14e2ca9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/qgsmaplayerstylecategoriesmodel.cpp
@@ -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

0 comments on commit 95c99f1

Please sign in to comment.
You can’t perform that action at this time.