Skip to content
Permalink
Browse files
qobject_cast
  • Loading branch information
nyalldawson committed Apr 27, 2021
1 parent 6ae3160 commit b3d6f83dd47ad9100b8aa4e385f08e5cda174fdd
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology/qgsstyle.cpp
@@ -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 )
{

0 comments on commit b3d6f83

Please sign in to comment.