Skip to content

Commit e4df60b

Browse files
Gustrym-kuhn
authored andcommitted
backport fix vertical alignment in attribute table references #12700 funded by Kartoza
1 parent d6185b5 commit e4df60b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/attributetable/qgsattributetablemodel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ QVariant QgsAttributeTableModel::data( const QModelIndex &index, int role ) cons
606606

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

612612
if ( mFeat.id() != rowId || !mFeat.isValid() )

0 commit comments

Comments
 (0)