mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-09 00:04:30 -05:00
Update src/core/callouts/qgscallout.cpp
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
This commit is contained in:
parent
af8e4432a9
commit
e2e99b6854
@ -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() ) );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user