Skip to content

Commit

Permalink
fix build when QT defines QT_NO_PRINTER
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Aug 16, 2019
1 parent fc482cb commit 5274c28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/qgsmultirenderchecker.cpp
Expand Up @@ -119,6 +119,9 @@ QgsLayoutChecker::QgsLayoutChecker( const QString &testName, QgsLayout *layout )

bool QgsLayoutChecker::testLayout( QString &checkedReport, int page, int pixelDiff, bool createReferenceImage )
{
#ifdef QT_NO_PRINTER
return false;
#else
if ( !mLayout )
{
return false;
Expand Down Expand Up @@ -169,7 +172,9 @@ bool QgsLayoutChecker::testLayout( QString &checkedReport, int page, int pixelDi
checkedReport += report();

return testResult;
#endif // QT_NO_PRINTER
}



///@endcond

0 comments on commit 5274c28

Please sign in to comment.