Skip to content

Commit caada42

Browse files
committed
Fixed another regression
1 parent 85e84cf commit caada42

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

java/preprocessor/src/main/java/processing/app/Preferences.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,7 @@ static public boolean getBoolean(String attribute) {
6161
String value = get(attribute); //, null);
6262
return Boolean.parseBoolean(value);
6363
}
64+
static public int getInteger(String attribute /*, int defaultValue*/) {
65+
return Integer.parseInt(get(attribute));
66+
}
6467
}

java/src/processing/mode/java/preproc/PdePreprocessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ public PdePreprocessorBuilder setDestinationPackage(String newDestinationPackage
412412
*/
413413
public PdePreprocessor build() {
414414
final int effectiveTabSize =
415-
tabSize.orElseGet(() -> 4);
415+
tabSize.orElseGet(() -> Preferences.getInteger("editor.tabs.size"));
416416

417417
final boolean effectiveIsTesting = isTesting.orElse(false);
418418

0 commit comments

Comments
 (0)