Skip to content

Commit ab30bfb

Browse files
committed
Fix broken data defined override buttons in text format widget when
no layer is associated Regression from qgis#55786
1 parent 0c759ed commit ab30bfb

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/gui/qgstextformatwidget.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -870,9 +870,6 @@ void QgsTextFormatWidget::registerDataDefinedButton( QgsPropertyOverrideButton *
870870
{
871871
QgsVectorLayer *vLayer = qobject_cast< QgsVectorLayer * >( mLayer );
872872

873-
if ( !vLayer )
874-
return;
875-
876873
button->init( key, mDataDefinedProperties, QgsPalLayerSettings::propertyDefinitions(), vLayer, true );
877874
if ( !mButtons.contains( key ) )
878875
{

0 commit comments

Comments
 (0)