Skip to content
Permalink
Browse files
fix windows build
  • Loading branch information
jef-n committed Feb 8, 2013
1 parent 9359480 commit e635f04bcc52997f078e8179bdd837d3dcf8efb5
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/qgscoordinatetransform.cpp
@@ -323,9 +323,9 @@ void QgsCoordinateTransform::transformPolygon( QPolygonF& poly, TransformDirecti
{
//create x, y arrays
int nVertices = poly.size();
qreal x[nVertices];
qreal y[nVertices];
qreal z[nVertices];
QVector<qreal> x( nVertices );
QVector<qreal> y( nVertices );
QVector<qreal> z( nVertices );

for ( int i = 0; i < nVertices; ++i )
{
@@ -337,7 +337,7 @@ void QgsCoordinateTransform::transformPolygon( QPolygonF& poly, TransformDirecti

try
{
transformCoords( nVertices, x, y, z, direction );
transformCoords( nVertices, x.data(), y.data(), z.data(), direction );
}
catch ( QgsCsException &cse )
{

0 comments on commit e635f04

Please sign in to comment.