tests/auto/qtransform/tst_qtransform.cpp
changeset 33 3e2da88830cd
parent 19 fcece45ef507
--- a/tests/auto/qtransform/tst_qtransform.cpp	Tue Jul 06 15:10:48 2010 +0300
+++ b/tests/auto/qtransform/tst_qtransform.cpp	Wed Aug 18 10:37:55 2010 +0300
@@ -85,6 +85,7 @@
     void inverted();
     void projectivePathMapping();
     void mapInt();
+    void mapPathWithPoint();
 
 private:
     void mapping_data();
@@ -793,6 +794,13 @@
     QCOMPARE(y, 10);
 }
 
+void tst_QTransform::mapPathWithPoint()
+{
+    QPainterPath p(QPointF(10, 10));
+    p = QTransform::fromTranslate(10, 10).map(p);
+    QCOMPARE(p.currentPosition(), QPointF(20, 20));
+}
+
 QTEST_APPLESS_MAIN(tst_QTransform)