mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
[symbology] Fix point pattern displacement logic to match pre 3.8
This commit is contained in:
parent
d7fa0286c4
commit
21940e1dfb
@ -3233,7 +3233,7 @@ void QgsPointPatternFillSymbolLayer::applyPattern( const QgsSymbolRenderContext
|
|||||||
{
|
{
|
||||||
for ( double currentY = -height; currentY <= height * 2.0; currentY += height / 2.0 )
|
for ( double currentY = -height; currentY <= height * 2.0; currentY += height / 2.0 )
|
||||||
{
|
{
|
||||||
mMarkerSymbol->renderPoint( QPointF( currentX + widthOffset, currentY + heightOffset - displacementPixelY ), context.feature(), pointRenderContext );
|
mMarkerSymbol->renderPoint( QPointF( currentX + widthOffset + ( std::fmod( currentY, height ) != 0 ? displacementPixelX : 0 ), currentY + heightOffset - displacementPixelY ), context.feature(), pointRenderContext );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user