Skip to content

Commit

Permalink
qobject_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Apr 27, 2021
1 parent 6ae3160 commit b3d6f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/symbology/qgsstyle.cpp
Expand Up @@ -2839,7 +2839,7 @@ bool QgsStyle::importXml( const QString &filename, int sinceVersion )
// load text formats

// this is ONLY safe to do if we have a QGuiApplication-- it requires QFontDatabase, which is not available otherwise!
if ( dynamic_cast< QGuiApplication * >( QCoreApplication::instance() ) )
if ( qobject_cast< QGuiApplication * >( QCoreApplication::instance() ) )
{
if ( version == STYLE_CURRENT_VERSION )
{
Expand Down

0 comments on commit b3d6f83

Please sign in to comment.