Fix warning

This commit is contained in:
Matthias Kuhn 2015-05-26 19:08:51 +02:00
parent 5f0d1b4bf1
commit 9a5e8d9ab8

View File

@ -32,7 +32,9 @@ class TestQgsMapToPixel: public QObject
void TestQgsMapToPixel::legacy()
{
Q_NOWARN_DEPRECATED_PUSH
QgsMapToPixel m2p( 2, 10, -4, 3 );
Q_NOWARN_DEPRECATED_POP
QgsPoint p( 0, 0 ); // in geographical units
QgsPoint d = m2p.transform( p ); // to device pixels