Update src/core/callouts/qgscallout.cpp

Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
This commit is contained in:
Nyall Dawson 2024-12-06 07:19:01 +10:00
parent af8e4432a9
commit e2e99b6854

View File

@ -487,7 +487,7 @@ QgsGeometry QgsCallout::calloutLineToPart( const QgsGeometry &labelGeometry, con
switch ( anchor )
{
case QgsCallout::PoleOfInaccessibility:
line = QgsGeometry( labelGeos.shortestLine( evaluatedPartAnchorGeom.poleOfInaccessibility( std::max( evaluatedPartAnchor->boundingBox().width(), evaluatedPartAnchor->boundingBox().height() ) / 20.0 ) ) ); // really rough (but quick) pole of inaccessibilit y
line = QgsGeometry( labelGeos.shortestLine( evaluatedPartAnchorGeom.poleOfInaccessibility( std::max( evaluatedPartAnchor->boundingBox().width(), evaluatedPartAnchor->boundingBox().height() ) / 20.0 ) ) ); // really rough (but quick) pole of inaccessibility
break;
case QgsCallout::PointOnSurface:
line = QgsGeometry( labelGeos.shortestLine( evaluatedPartAnchorGeom.pointOnSurface() ) );