mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 02:41:08 +01:00
deal with path handling in renderers
This commit is contained in:
@@ -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 " +
|
||||
|
||||
Reference in New Issue
Block a user