Skip to content

Commit

Permalink
make the attribute table vertically aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Mar 14, 2017
1 parent 5c02c8a commit ac912cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -620,7 +620,7 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons

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

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

0 comments on commit ac912cc

Please sign in to comment.