Skip to content

Commit 2b210a5

Browse files
committed
do not make an unecessary copy
1 parent 7f8006f commit 2b210a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/qgsmaptopixel.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,8 @@ void QgsMapToPixel::transform( QgsPoint* p ) const
268268
void QgsMapToPixel::transformInPlace( qreal& x, qreal& y ) const
269269
{
270270
// Map 2 Pixel
271-
272-
QTransform matrix = mMatrix;
273271
double mx, my;
274-
matrix.map( x, y, &mx, &my );
272+
mMatrix.map( x, y, &mx, &my );
275273
//QgsDebugMsg(QString("XXX transformInPlace X : %1-->%2, Y: %3 -->%4").arg(x).arg(mx).arg(y).arg(my));
276274
x = mx; y = my;
277275
}

0 commit comments

Comments
 (0)