Skip to content

Commit 5dc75d4

Browse files
committed
Fix some failing tests
1 parent 1532048 commit 5dc75d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/composer/qgscomposermap.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2611,7 +2611,7 @@ void QgsComposerMap::drawOverviewMapExtent( QPainter* p )
26112611
//We are inverting the overview frame (ie, shading outside the intersecting extent)
26122612
//Construct a polygon corresponding to the overview map extent
26132613
QPolygonF outerPolygon;
2614-
outerPolygon << QPointF( 0, 0 ) << QPointF( rect().width(), 0 ) << QPointF( rect().width(), rect().height() ) << QPointF( 0, rect().height() ) << QPointF( 0, 0 );
2614+
outerPolygon << QPointF( 0, 0 ) << QPointF( rect().width() * dotsPerMM, 0 ) << QPointF( rect().width() * dotsPerMM, rect().height() * dotsPerMM ) << QPointF( 0, rect().height() * dotsPerMM ) << QPointF( 0, 0 );
26152615

26162616
//Intersecting extent is an inner ring for the shaded area
26172617
rings.append( intersectPolygon );

tests/src/core/testqgsshapeburst.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ bool TestQgsShapeburst::imageCheck( QString theTestType )
236236
QgsRenderChecker myChecker;
237237
myChecker.setControlName( "expected_" + theTestType );
238238
myChecker.setMapSettings( mMapSettings );
239-
bool myResultFlag = myChecker.runTest( theTestType );
239+
bool myResultFlag = myChecker.runTest( theTestType, 200 );
240240
mReport += myChecker.report();
241241
return myResultFlag;
242242
}

0 commit comments

Comments
 (0)