Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 8, 2013
1 parent 9359480 commit e635f04
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgscoordinatetransform.cpp
Expand Up @@ -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 )
{
Expand All @@ -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 )
{
Expand Down

0 comments on commit e635f04

Please sign in to comment.