Skip to content

Commit

Permalink
Silence OpenType support missing Qt warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jan 12, 2021
1 parent bf56a6b commit ea5ce01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/main.cpp
Expand Up @@ -400,7 +400,8 @@ void myMessageOutput( QtMsgType type, const QMessageLogContext &, const QString
* - QtSVG warnings with regards to lack of implementation beyond Tiny SVG 1.2
*/
if ( msg.startsWith( QLatin1String( "libpng warning: iCCP: known incorrect sRGB profile" ), Qt::CaseInsensitive ) ||
msg.contains( QLatin1String( "Could not add child element to parent element because the types are incorrect" ), Qt::CaseInsensitive ) )
msg.contains( QLatin1String( "Could not add child element to parent element because the types are incorrect" ), Qt::CaseInsensitive ) ||
msg.contains( QLatin1String( "OpenType support missing for" ), Qt::CaseInsensitive ) )
break;

myPrint( "Warning: %s\n", msg.toLocal8Bit().constData() );
Expand Down

0 comments on commit ea5ce01

Please sign in to comment.