Skip to content

Commit

Permalink
Don't show font preview when set to no format
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 14, 2020
1 parent 761f594 commit e01cf94
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/qgsfontbutton.cpp
Expand Up @@ -821,6 +821,12 @@ void QgsFontButton::resizeEvent( QResizeEvent *event )

void QgsFontButton::updatePreview( const QColor &color, QgsTextFormat *format, QFont *font )
{
if ( mShowNoFormat && !mFormat.isValid() )
{
setIcon( QPixmap() );
return;
}

QgsTextFormat tempFormat;
QFont tempFont;

Expand Down

0 comments on commit e01cf94

Please sign in to comment.