mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
do not make an unecessary copy
This commit is contained in:
parent
7f8006f93b
commit
2b210a5c6f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user