mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-10 00:13:55 -04:00
fix build when QT defines QT_NO_PRINTER
This commit is contained in:
parent
fc482cbe05
commit
5274c287b5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user