Skip to content
Snippets Groups Projects
Commit 84eda3ab authored by stepan's avatar stepan
Browse files

Small fix in LRaster

parent 2c60589a
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,9 @@ public abstract class LRaster extends RExternalBuiltinNode.Arg8 {
Point origLoc = Point.fromUnits(xVec, yVec, i, conversionCtx);
Point transLoc = TransformMatrix.transLocation(origLoc, vpTransform.transform);
Point loc = transLoc.justify(size, getDataAtMod(hjust, i), getDataAtMod(vjust, i));
if (!loc.isFinite() || !size.isFinite()) {
continue;
}
ImageInterpolation interpolation = getInterpolation(interpolate, i);
dev.drawRaster(loc.x, loc.y, size.getWidth(), size.getHeight(), pixels, dims.getDataAt(1), interpolation);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment