Skip to content

Commit ca4fcce

Browse files
authored
Fix - Fix font color in table conditional present selection (#8136)
1 parent f630c93 commit ca4fcce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gui/attributetable/qgsfieldconditionalformatwidget.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ void QgsFieldConditionalFormatWidget::setPresets( const QList<QgsConditionalStyl
206206
if ( style.isValid() )
207207
{
208208
QStandardItem *item = new QStandardItem( QStringLiteral( "abc - 123" ) );
209-
if ( style.backgroundColor().isValid() )
209+
if ( style.validBackgroundColor() )
210210
item->setBackground( style.backgroundColor() );
211-
if ( style.textColor().isValid() )
211+
if ( style.validTextColor() )
212212
item->setForeground( style.textColor() );
213213
if ( style.symbol() )
214214
item->setIcon( style.icon() );

0 commit comments

Comments
 (0)