Skip to content
Permalink
Browse files
do not make an unecessary copy
  • Loading branch information
3nids committed Dec 11, 2014
1 parent 7f8006f commit 2b210a5c6f6f9c6eff6891045965673ec7dd8a88
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/core/qgsmaptopixel.cpp
@@ -268,10 +268,8 @@ void QgsMapToPixel::transform( QgsPoint* p ) const
void QgsMapToPixel::transformInPlace( qreal& x, qreal& y ) const
{
// Map 2 Pixel

QTransform matrix = mMatrix;
double mx, my;
matrix.map( x, y, &mx, &my );
mMatrix.map( x, y, &mx, &my );
//QgsDebugMsg(QString("XXX transformInPlace X : %1-->%2, Y: %3 -->%4").arg(x).arg(mx).arg(y).arg(my));
x = mx; y = my;
}

0 comments on commit 2b210a5

Please sign in to comment.