We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent f630c93 commit ca4fcceCopy full SHA for ca4fcce
src/gui/attributetable/qgsfieldconditionalformatwidget.cpp
@@ -206,9 +206,9 @@ void QgsFieldConditionalFormatWidget::setPresets( const QList<QgsConditionalStyl
206
if ( style.isValid() )
207
{
208
QStandardItem *item = new QStandardItem( QStringLiteral( "abc - 123" ) );
209
- if ( style.backgroundColor().isValid() )
+ if ( style.validBackgroundColor() )
210
item->setBackground( style.backgroundColor() );
211
- if ( style.textColor().isValid() )
+ if ( style.validTextColor() )
212
item->setForeground( style.textColor() );
213
if ( style.symbol() )
214
item->setIcon( style.icon() );
0 commit comments