diff --git a/src/core/qgspallabeling.cpp b/src/core/qgspallabeling.cpp index 0e97b54762dd..05ffdb29350a 100644 --- a/src/core/qgspallabeling.cpp +++ b/src/core/qgspallabeling.cpp @@ -1733,15 +1733,15 @@ void QgsPalLayerSettings::registerFeature( QgsFeature& f, const QgsRenderContext const GEOSGeometry* geos_geom = 0; const QgsGeometry* preparedGeom = geom; - QScopedPointer scpoedPreparedGeom; + QScopedPointer scopedPreparedGeom; if ( QgsPalLabeling::geometryRequiresPreparation( geom, context, ct, doClip ? extentGeom : 0 ) ) { - scpoedPreparedGeom.reset( QgsPalLabeling::prepareGeometry( geom, context, ct, doClip ? extentGeom : 0 ) ); - if ( !scpoedPreparedGeom.data() ) + scopedPreparedGeom.reset( QgsPalLabeling::prepareGeometry( geom, context, ct, doClip ? extentGeom : 0 ) ); + if ( !scopedPreparedGeom.data() ) return; - preparedGeom = scpoedPreparedGeom.data(); - geos_geom = scpoedPreparedGeom.data()->asGeos(); + preparedGeom = scopedPreparedGeom.data(); + geos_geom = scopedPreparedGeom.data()->asGeos(); } else {