Skip to content
Permalink
Browse files

Merge pull request #7925 from elpaso/bugfix-unreported-crash-on-load-…

…style

[bugfix] unreported crash on load style
  • Loading branch information
elpaso committed Sep 17, 2018
2 parents 39e1f89 + 95c99f1 commit cf73d56c59000b00145d2958413210e033524b75
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 cf73d56

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