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 Sep 29, 2021
1 parent bc5ba97 commit b90e1be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/layout/qgslayoutattributetablewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,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 b90e1be

Please sign in to comment.