Skip to content

Commit

Permalink
backport fix vertical alignment in attribute table references #12700
Browse files Browse the repository at this point in the history
…funded by Kartoza
  • Loading branch information
Gustry authored and m-kuhn committed Mar 15, 2017
1 parent d6185b5 commit e4df60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -606,7 +606,7 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons

if ( role == Qt::TextAlignmentRole )
{
return mWidgetFactories.at( index.column() )->alignmentFlag( layer(), fieldId, mWidgetConfigs.at( index.column() ) );
return QVariant( mWidgetFactories.at( index.column() )->alignmentFlag( layer(), fieldId, mWidgetConfigs.at( index.column() ) ) | Qt::AlignVCenter );
}

if ( mFeat.id() != rowId || !mFeat.isValid() )
Expand Down

0 comments on commit e4df60b

Please sign in to comment.