diff --git a/pixmappaint.d b/pixmappaint.d index b0a441a..778e7eb 100644 --- a/pixmappaint.d +++ b/pixmappaint.d @@ -3128,7 +3128,7 @@ private void scaleToImpl(ScalingFilter filter)(const Pixmap source, Pixmap targe }(); } - foreach (x, ref pxDst; dstLine) { + foreach (const x, ref pxDst; dstLine) { const posDstX = x.castTo!uint; const int[2] posDst = [ posDstX,