diff --git a/app/inpututils.cpp b/app/inpututils.cpp index 0ec88d012..37724832e 100644 --- a/app/inpututils.cpp +++ b/app/inpututils.cpp @@ -318,20 +318,21 @@ QPointF InputUtils::geometryCenterToScreenCoordinates( const QgsGeometry &geom, bool InputUtils::canExtentContainGeometry( const QgsGeometry &geom, InputMapSettings *mapSettings ) { - QPointF screenPoint; + QPointF screenPoint; - if ( !mapSettings || geom.isNull() || !geom.constGet() ) - // return screenPoint; - return false; + if ( !mapSettings || geom.isNull() || !geom.constGet() ) + // return screenPoint; + return false; - QgsRectangle geomBbox = geom.boundingBox(); - QgsRectangle currentExtent = mapSettings->mapSettings().extent(); + QgsRectangle geomBbox = geom.boundingBox(); + QgsRectangle currentExtent = mapSettings->mapSettings().extent(); - if (currentExtent.width() > geomBbox.width() - && currentExtent.height() > geomBbox.height()) { - return true; - } - return false; + if ( currentExtent.width() > geomBbox.width() + && currentExtent.height() > geomBbox.height() ) + { + return true; + } + return false; }