Skip to content

Commit e635f04

Browse files
committed
fix windows build
1 parent 9359480 commit e635f04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/core/qgscoordinatetransform.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ void QgsCoordinateTransform::transformPolygon( QPolygonF& poly, TransformDirecti
323323
{
324324
//create x, y arrays
325325
int nVertices = poly.size();
326-
qreal x[nVertices];
327-
qreal y[nVertices];
328-
qreal z[nVertices];
326+
QVector<qreal> x( nVertices );
327+
QVector<qreal> y( nVertices );
328+
QVector<qreal> z( nVertices );
329329

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

338338
try
339339
{
340-
transformCoords( nVertices, x, y, z, direction );
340+
transformCoords( nVertices, x.data(), y.data(), z.data(), direction );
341341
}
342342
catch ( QgsCsException &cse )
343343
{

0 commit comments

Comments
 (0)