fix build when QT defines QT_NO_PRINTER

This commit is contained in:
Peter Petrik 2019-08-14 15:16:53 +02:00
parent fc482cbe05
commit 5274c287b5

View File

@ -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;
@ -169,7 +172,9 @@ bool QgsLayoutChecker::testLayout( QString &checkedReport, int page, int pixelDi
checkedReport += report();
return testResult;
#endif // QT_NO_PRINTER
}
///@endcond