mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +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 " +
|
||||
|
||||
@@ -203,7 +203,6 @@ public class PdePreprocessor {
|
||||
|
||||
public String[] initSketchSize(String code, boolean sizeWarning) throws SketchException {
|
||||
String[] info = parseSketchSize(code, sizeWarning);
|
||||
PApplet.printArray(info);
|
||||
if (info != null) {
|
||||
sizeStatement = info[0];
|
||||
sketchWidth = info[1];
|
||||
|
||||
Reference in New Issue
Block a user