Skip to content

Commit 9ae9de3

Browse files
committed
Compositionchecker: Default color tolerance of 1
1 parent b28dcb9 commit 9ae9de3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

tests/src/core/qgscompositionchecker.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@
2222
#include <QPainter>
2323

2424
QgsCompositionChecker::QgsCompositionChecker( const QString& testName, QgsComposition* composition )
25-
: QgsMultiRenderChecker(),
26-
mTestName( testName ),
27-
mComposition( composition ),
28-
mSize( 1122, 794 ),
29-
mDotsPerMeter( 96 / 25.4 * 1000 )
25+
: QgsMultiRenderChecker()
26+
, mTestName( testName )
27+
, mComposition( composition )
28+
, mSize( 1122, 794 )
29+
, mDotsPerMeter( 96 / 25.4 * 1000 )
3030
{
31+
// The composer has some slight render inconsistencies on the whole image sometimes
32+
setColorTolerance( 1 );
3133
}
3234

3335
QgsCompositionChecker::QgsCompositionChecker()

0 commit comments

Comments
 (0)