mirror of https://github.com/qt/qtbase.git
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:
parent
46e8ac0308
commit
fefa8cf392
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue