Skip to content
Permalink
Browse files

backport fix vertical alignment in attribute table references #12700

…funded by Kartoza
  • Loading branch information
Gustry authored and m-kuhn committed Mar 14, 2017
1 parent d6185b5 commit e4df60b2017384eaa04ab2e2ea11c2d742dac6fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/attributetable/qgsattributetablemodel.cpp
@@ -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() )

0 comments on commit e4df60b

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