Skip to content

Commit c6b9871

Browse files
author
Jonah Williams
authored
fix bounds of saveLayer (#152)
1 parent b65cb97 commit c6b9871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vector_graphics/lib/src/render_vector_graphic.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ class RenderPictureVectorGraphic extends RenderBox {
439439
context.canvas.translate(offset.dx, offset.dy);
440440
}
441441
if (_opacityValue != 1.0 || colorFilter != null) {
442-
context.canvas.saveLayer(offset & size, colorPaint);
442+
context.canvas.saveLayer(Offset.zero & size, colorPaint);
443443
}
444444
context.canvas.drawPicture(pictureInfo.picture);
445445
context.canvas.restoreToCount(saveCount);

0 commit comments

Comments
 (0)