File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ void TestQgsMapCanvas::testMagnification()
194
194
checker.setControlName ( QStringLiteral ( " expected_map_magnification" ) );
195
195
checker.setRenderedImage ( tmpName );
196
196
checker.setSizeTolerance ( 10 , 10 );
197
- QCOMPARE ( checker.compareImages ( " map_magnification" , 100 ), true );
197
+ QCOMPARE ( checker.compareImages ( QStringLiteral ( " map_magnification" ) , 100 ), true );
198
198
}
199
199
200
200
void compareExtent ( const QgsRectangle &initialExtent,
@@ -303,6 +303,7 @@ void TestQgsMapCanvas::testMagnificationScale()
303
303
304
304
void TestQgsMapCanvas::testScaleLockCanvasResize ()
305
305
{
306
+ QSize prevSize = mCanvas ->size ();
306
307
mCanvas ->resize ( 600 , 400 );
307
308
QCOMPARE ( mCanvas ->width (), 600 );
308
309
QCOMPARE ( mCanvas ->height (), 400 );
@@ -320,6 +321,7 @@ void TestQgsMapCanvas::testScaleLockCanvasResize()
320
321
321
322
mCanvas ->setScaleLocked ( false );
322
323
mCanvas ->setMagnificationFactor ( 1.0 );
324
+ mCanvas ->resize ( prevSize );
323
325
}
324
326
325
327
void TestQgsMapCanvas::testZoomByWheel ()
You can’t perform that action at this time.
0 commit comments