Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Oct 25, 2024
1 parent 22e9672 commit c296d7b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions app/inpututils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

1 comment on commit c296d7b

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.10.689911 just submitted!

Please sign in to comment.