Skip to content
Permalink
Browse files

qgsgeometry_cast

  • Loading branch information
nyalldawson committed May 25, 2018
1 parent 80e44c1 commit 29d5105c40a13fd10010026716f7097966f4258c
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/qgsmaptopixelgeometrysimplifier.cpp
@@ -193,8 +193,8 @@ std::unique_ptr< QgsAbstractGeometry > QgsMapToPixelSimplifier::simplifyGeometry
const double *yData = nullptr;
if ( flatType == QgsWkbTypes::LineString )
{
xData = static_cast< const QgsLineString * >( &srcCurve )->xData();
yData = static_cast< const QgsLineString * >( &srcCurve )->yData();
xData = qgsgeometry_cast< const QgsLineString * >( &srcCurve )->xData();
yData = qgsgeometry_cast< const QgsLineString * >( &srcCurve )->yData();
}

for ( int i = 0; i < numPoints; ++i )
@@ -264,8 +264,8 @@ std::unique_ptr< QgsAbstractGeometry > QgsMapToPixelSimplifier::simplifyGeometry
const double *yData = nullptr;
if ( flatType == QgsWkbTypes::LineString )
{
xData = static_cast< const QgsLineString * >( &srcCurve )->xData();
yData = static_cast< const QgsLineString * >( &srcCurve )->yData();
xData = qgsgeometry_cast< const QgsLineString * >( &srcCurve )->xData();
yData = qgsgeometry_cast< const QgsLineString * >( &srcCurve )->yData();
}

for ( int i = 0; i < numPoints; ++i )

0 comments on commit 29d5105

Please sign in to comment.
You can’t perform that action at this time.