Skip to content

Commit ff7aaba

Browse files
committed
make QgsCompositionChecker less forgiving and readd a svg used in tests (fixes #7731)
1 parent b9fc239 commit ff7aaba

File tree

2 files changed

+78
-2
lines changed

2 files changed

+78
-2
lines changed

images/svg/gpsicons/plane_orange.svg

+76
Loading

tests/src/core/qgscompositionchecker.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ bool QgsCompositionChecker::compareImages( const QImage& imgExpected, const QIma
126126
differenceImage.save( differenceImagePath, "PNG" );
127127
}
128128

129-
//allow pixel deviation of 1 percent
129+
//allow pixel deviation of 1 per mille
130130
int pixelCount = imageWidth * imageHeight;
131-
return (( double )mismatchCount / ( double )pixelCount ) < 0.01;
131+
return (( double )mismatchCount / ( double )pixelCount ) < 0.001;
132132
}

0 commit comments

Comments
 (0)