Skip to content

Commit 959a904

Browse files
author
Pavel Marek
committed
[GR-38620] Fix SVG files outer dimensions.
1 parent 715488e commit 959a904

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/javaGD/SVGImageContainer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -67,6 +67,7 @@ public Graphics getGraphics() {
6767
protected void resetGraphics() {
6868
Document document = domImpl.createDocument(SVG_NS, "svg", null);
6969
this.graphics = new SVGGraphics2D(document);
70+
this.graphics.setSVGCanvasSize(size);
7071
defaultInitGraphics(this.graphics);
7172
}
7273

0 commit comments

Comments
 (0)