Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 10, 2021
1 parent 74a4d10 commit 615e88d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/oracle/qgsoracleprovider.cpp
Expand Up @@ -1982,8 +1982,8 @@ void QgsOracleProvider::appendGeomParam( const QgsGeometry &geom, QSqlQuery &qry
// Oracle polygons must have their exterior ring in counterclockwise
// order, and the interior ring(s) in clockwise order.
const bool reverseRing =
iRing == 0 ? poly->exteriorRing()->orientation() == QgsCurve::Orientation::Clockwise :
poly->interiorRing( iRing - 1 )->orientation() == QgsCurve::Orientation::CounterClockwise;
iRing == 0 ? poly->exteriorRing()->orientation() == Qgis::AngularDirection::Clockwise :
poly->interiorRing( iRing - 1 )->orientation() == Qgis::AngularDirection::CounterClockwise;

const int n = *ptr.iPtr++;
if ( reverseRing )
Expand Down Expand Up @@ -2156,8 +2156,8 @@ void QgsOracleProvider::appendGeomParam( const QgsGeometry &geom, QSqlQuery &qry
// Oracle polygons must have their exterior ring in counterclockwise
// order, and the interior ring(s) in clockwise order.
const bool reverseRing =
iRing == 0 ? ring->orientation() == QgsCurve::Orientation::Clockwise :
ring->orientation() == QgsCurve::Orientation::CounterClockwise;
iRing == 0 ? ring->orientation() == Qgis::AngularDirection::Clockwise :
ring->orientation() == Qgis::AngularDirection::CounterClockwise;
std::unique_ptr<QgsCurve> reversedRing( reverseRing ? ring->reversed() : nullptr );
const QgsCurve *correctedRing = reversedRing ? reversedRing.get() : ring;
const QgsCompoundCurve *compound = dynamic_cast<const QgsCompoundCurve *>( correctedRing );
Expand Down

0 comments on commit 615e88d

Please sign in to comment.