Skip to content

Commit

Permalink
do not make an unecessary copy
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Dec 11, 2014
1 parent 7f8006f commit 2b210a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/qgsmaptopixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.