mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
[rotated_ticks] add a tolerance for skip low angled ticks parameter
This commit is contained in:
parent
a53dae2c90
commit
ca873438b2
@ -1017,7 +1017,7 @@ void QgsLayoutItemMapGrid::drawGridFrameTicks( QPainter *p, GridExtension *exten
|
||||
continue;
|
||||
|
||||
// If the angle is below the threshold, we don't draw the annotation
|
||||
if ( abs( annot.angle ) / M_PI * 180.0 > 90.0 - mRotatedTicksMinimumAngle )
|
||||
if ( abs( annot.angle ) / M_PI * 180.0 > 90.0 - mRotatedTicksMinimumAngle + 0.0001 )
|
||||
continue;
|
||||
|
||||
// Skip outwards facing annotations that are below mRotatedTicksMarginToCorner
|
||||
@ -1216,7 +1216,7 @@ void QgsLayoutItemMapGrid::drawCoordinateAnnotation( QgsRenderContext &context,
|
||||
AnnotationDirection anotDir = annotationDirection( frameBorder );
|
||||
|
||||
// If the angle is below the threshold, we don't draw the annotation
|
||||
if ( abs( annot.angle ) / M_PI * 180.0 > 90.0 - mRotatedAnnotationsMinimumAngle )
|
||||
if ( abs( annot.angle ) / M_PI * 180.0 > 90.0 - mRotatedAnnotationsMinimumAngle + 0.0001 )
|
||||
return;
|
||||
|
||||
QVector2D normalVector = borderToNormal2D( annot.border );
|
||||
|
Loading…
x
Reference in New Issue
Block a user