Skip to content

Commit

Permalink
[labeling] Further fix for #8367, 'font missing' text keeps showing up
Browse files Browse the repository at this point in the history
- Move to more generic test on font family
  • Loading branch information
dakcarto committed Aug 31, 2013
1 parent 40b8ea4 commit 4c40273
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgslabelinggui.cpp
Expand Up @@ -1049,7 +1049,8 @@ void QgsLabelingGui::updateFont( QFont font )
}

// test if font is actually available
mFontMissingLabel->setVisible( !QgsFontUtils::fontMatchOnSystem( mRefFont ) );
// NOTE: QgsFontUtils::fontMatchOnSystem may fail here, just crosscheck family
mFontMissingLabel->setVisible( !QgsFontUtils::fontFamilyMatchOnSystem( mRefFont.family() ) );

mDirectSymbLeftLineEdit->setFont( mRefFont );
mDirectSymbRightLineEdit->setFont( mRefFont );
Expand Down

0 comments on commit 4c40273

Please sign in to comment.