Skip to content
Permalink
Browse files

Don't show font preview when set to no format

  • Loading branch information
nyalldawson committed Jul 14, 2020
1 parent 761f594 commit e01cf94729bbd58fcfbab81ec531cc19178a5530
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/qgsfontbutton.cpp
@@ -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;

0 comments on commit e01cf94

Please sign in to comment.
You can’t perform that action at this time.