We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e22939e + aa95881 commit 23f1e43Copy full SHA for 23f1e43
src/gui/qgssnaptogridcanvasitem.cpp
@@ -53,9 +53,9 @@ void QgsSnapToGridCanvasItem::paint( QPainter *painter )
53
const double gridYMin = std::ceil( layerExtent.yMinimum() / mPrecision ) * mPrecision;
54
const double gridYMax = std::ceil( layerExtent.yMaximum() / mPrecision ) * mPrecision;
55
56
- for ( int x = gridXMin ; x < gridXMax; x += mPrecision )
+ for ( double x = gridXMin ; x < gridXMax; x += mPrecision )
57
{
58
- for ( int y = gridYMin ; y < gridYMax; y += mPrecision )
+ for ( double y = gridYMin ; y < gridYMax; y += mPrecision )
59
60
const QgsPointXY pt = mTransform.transform( x, y );
61
const QPointF canvasPt = toCanvasCoordinates( pt );
0 commit comments