summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Pastor <dg0yt@darc.de>2015-06-12 09:09:00 +0200
committerKai Pastor <dg0yt@darc.de>2015-06-16 06:11:58 +0000
commitfefa8cf3922b124c3919859bb4a18fc3e48d5d81 (patch)
tree24cac140b4fddad4acd7fde6bf7cda77fe2eaba4
parent46e8ac03083f1180ee1b8468e3285da8a26598de (diff)
Fix boundingRect test in tst_QPicture
Verify the bounding rect of the left hand side of copy/assignment, not the right hand side (which is passed by const ref). Change-Id: I5044d269fe0acb5f4484c82da7e030ca33958792 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
-rw-r--r--tests/auto/gui/image/qpicture/tst_qpicture.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/gui/image/qpicture/tst_qpicture.cpp b/tests/auto/gui/image/qpicture/tst_qpicture.cpp
index 3cf848b08d..5406284c05 100644
--- a/tests/auto/gui/image/qpicture/tst_qpicture.cpp
+++ b/tests/auto/gui/image/qpicture/tst_qpicture.cpp
@@ -133,10 +133,10 @@ void tst_QPicture::boundingRect()
QRect r2( 10, 20, 100, 60 );
QCOMPARE( p1.boundingRect(), r2 );
QPicture p2( p1 );
- QCOMPARE( p1.boundingRect(), r2 );
+ QCOMPARE( p2.boundingRect(), r2 );
QPicture p3;
p3 = p1;
- QCOMPARE( p1.boundingRect(), r2 );
+ QCOMPARE( p3.boundingRect(), r2 );
{
QPicture p4;