Skip to content

Commit

Permalink
Do not show QtSVG warnings for SVG spec implementation gaps
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Sep 17, 2019
1 parent 65ac68b commit 74c4f8e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/app/main.cpp
Expand Up @@ -386,9 +386,13 @@ void myMessageOutput( QtMsgType type, const char *msg )
break;
case QtWarningMsg:
{
// Ignore libpng iCPP known incorrect SRGB profile errors
// (which are thrown by 3rd party components we have no control over and have low value anyway).
if ( strncmp( msg, "libpng warning: iCCP: known incorrect sRGB profile", 50 ) == 0 )
/* Ignore:
* - libpng iCPP known incorrect SRGB profile errors (which are thrown by 3rd party components
* we have no control over and have low value anyway);
* - QtSVG warnings with regards to lack of implementation beyond Tiny SVG 1.2
*/
if ( strncmp( msg, "libpng warning: iCCP: known incorrect sRGB profile", 50 ) == 0 ||
strstr( msg, "Could not add child element to parent element because the types are incorrect" ) )
break;

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

0 comments on commit 74c4f8e

Please sign in to comment.