Skip to content

Commit

Permalink
Also update font btn layer in changeLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Nov 1, 2021
1 parent 9fb1583 commit bb0718b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/layout/qgslayoutattributetablewidget.cpp
Expand Up @@ -800,6 +800,9 @@ void QgsLayoutAttributeTableWidget::changeLayer( QgsMapLayer *layer )
mTable->update();
mTable->endCommand();

mContentFontToolButton->setLayer( vl );
mHeaderFontToolButton->setLayer( vl );

if ( vl->geometryType() == QgsWkbTypes::NullGeometry )
{
//layer has no geometry, so uncheck & disable controls which require geometry
Expand Down

0 comments on commit bb0718b

Please sign in to comment.