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>
This commit is contained in:
Kai Pastor 2015-06-12 09:09:00 +02:00
parent 46e8ac0308
commit fefa8cf392
1 changed files with 2 additions and 2 deletions

View File

@ -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;