@@ -426,8 +426,8 @@ unsigned char *QgsVectorLayer::drawLineString( unsigned char *feature, QgsRender
426
426
// the rest of them so end the loop at that point.
427
427
for ( register unsigned int i = 0 ; i < nPoints; ++i )
428
428
{
429
- if ( std::abs ( x[i] ) > QgsClipper::MAX_X ||
430
- std::abs ( y[i] ) > QgsClipper::MAX_Y )
429
+ if ( qAbs ( x[i] ) > QgsClipper::MAX_X ||
430
+ qAbs ( y[i] ) > QgsClipper::MAX_Y )
431
431
{
432
432
QgsClipper::trimFeature ( x, y, true ); // true = polyline
433
433
nPoints = x.size (); // trimming may change nPoints.
@@ -546,8 +546,8 @@ unsigned char *QgsVectorLayer::drawPolygon( unsigned char *feature, QgsRenderCon
546
546
// the rest of them so end the loop at that point.
547
547
for ( register unsigned int i = 0 ; i < nPoints; ++i )
548
548
{
549
- if ( std::abs ( ring->first [i] ) > QgsClipper::MAX_X ||
550
- std::abs ( ring->second [i] ) > QgsClipper::MAX_Y )
549
+ if ( qAbs ( ring->first [i] ) > QgsClipper::MAX_X ||
550
+ qAbs ( ring->second [i] ) > QgsClipper::MAX_Y )
551
551
{
552
552
QgsClipper::trimFeature ( ring->first , ring->second , false );
553
553
break ;
@@ -4037,8 +4037,8 @@ void QgsVectorLayer::drawFeature( QgsRenderContext &renderContext,
4037
4037
double y = *(( double * )( feature + 5 + sizeof ( double ) ) );
4038
4038
4039
4039
transformPoint ( x, y, &renderContext.mapToPixel (), renderContext.coordinateTransform () );
4040
- if ( std::abs ( x ) > QgsClipper::MAX_X ||
4041
- std::abs ( y ) > QgsClipper::MAX_Y )
4040
+ if ( qAbs ( x ) > QgsClipper::MAX_X ||
4041
+ qAbs ( y ) > QgsClipper::MAX_Y )
4042
4042
{
4043
4043
break ;
4044
4044
}
@@ -4085,8 +4085,8 @@ void QgsVectorLayer::drawFeature( QgsRenderContext &renderContext,
4085
4085
// QPointF pt( x, y );
4086
4086
4087
4087
// Work around a +/- 32768 limitation on coordinates
4088
- if ( std::abs ( x ) > QgsClipper::MAX_X ||
4089
- std::abs ( y ) > QgsClipper::MAX_Y )
4088
+ if ( qAbs ( x ) > QgsClipper::MAX_X ||
4089
+ qAbs ( y ) > QgsClipper::MAX_Y )
4090
4090
needToTrim = true ;
4091
4091
else
4092
4092
p->drawImage ( pt, *marker );
0 commit comments