Table layout item: set source layer in font tool btn

Fixes #45098
This commit is contained in:
Alessandro Pasotti 2021-09-27 13:52:07 +02:00 committed by Nyall Dawson
parent 6c46c4644c
commit bc5ba97446

View File

@ -74,7 +74,9 @@ QgsLayoutAttributeTableWidget::QgsLayoutAttributeTableWidget( QgsLayoutFrame *fr
mHeaderFontToolButton->setMode( QgsFontButton::ModeTextRenderer );
mContentFontToolButton->registerExpressionContextGenerator( this );
mContentFontToolButton->setLayer( mTable->sourceLayer() );
mHeaderFontToolButton->registerExpressionContextGenerator( this );
mHeaderFontToolButton->setLayer( mTable->sourceLayer() );
blockAllSignals( true );