Skip to content

Commit

Permalink
Fixed another regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefterv committed Dec 14, 2024
1 parent 85e84cf commit caada42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ static public boolean getBoolean(String attribute) {
String value = get(attribute); //, null);
return Boolean.parseBoolean(value);
}
static public int getInteger(String attribute /*, int defaultValue*/) {
return Integer.parseInt(get(attribute));
}
}
2 changes: 1 addition & 1 deletion java/src/processing/mode/java/preproc/PdePreprocessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public PdePreprocessorBuilder setDestinationPackage(String newDestinationPackage
*/
public PdePreprocessor build() {
final int effectiveTabSize =
tabSize.orElseGet(() -> 4);
tabSize.orElseGet(() -> Preferences.getInteger("editor.tabs.size"));

final boolean effectiveIsTesting = isTesting.orElse(false);

Expand Down

0 comments on commit caada42

Please sign in to comment.