Skip to content

Commit

Permalink
Fix - Fix font color in table conditional present selection (#8136)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Oct 8, 2018
1 parent f630c93 commit ca4fcce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/attributetable/qgsfieldconditionalformatwidget.cpp
Expand Up @@ -206,9 +206,9 @@ void QgsFieldConditionalFormatWidget::setPresets( const QList<QgsConditionalStyl
if ( style.isValid() )
{
QStandardItem *item = new QStandardItem( QStringLiteral( "abc - 123" ) );
if ( style.backgroundColor().isValid() )
if ( style.validBackgroundColor() )
item->setBackground( style.backgroundColor() );
if ( style.textColor().isValid() )
if ( style.validTextColor() )
item->setForeground( style.textColor() );
if ( style.symbol() )
item->setIcon( style.icon() );
Expand Down

0 comments on commit ca4fcce

Please sign in to comment.