deal with path handling in renderers

This commit is contained in:
Ben Fry
2015-05-15 16:16:19 -04:00
parent 6ae3a56d88
commit 3d33fe3fd1
3 changed files with 10 additions and 10 deletions

View File

@@ -72,7 +72,9 @@ public class PGraphicsPDF extends PGraphicsJava2D {
this.path = path;
if (path != null) {
file = new File(path);
if (!file.isAbsolute()) file = null;
if (!file.isAbsolute()) {
file = null;
}
}
if (file == null) {
throw new RuntimeException("PGraphicsPDF requires an absolute path " +