Skip to content

Commit

Permalink
use minrect instead
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 committed Apr 19, 2021
1 parent edd5d39 commit 14be7e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/geometry/qgsinternalgeometryengine.cpp
Expand Up @@ -1505,8 +1505,8 @@ QgsGeometry QgsInternalGeometryEngine::orientedMinimumBoundingBox( double &area,

if ( width > height )
{
width = bounds.height();
height = bounds.width();
width = minRect.height();
height = minRect.width();
angle = angle + 90;
}

Expand Down

0 comments on commit 14be7e4

Please sign in to comment.