Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2cfebc9

Browse filesBrowse files
author
Federico Fissore
committed
porting #100 to branch 1.5.x
2 parents 022d550 + 92d1c8e commit 2cfebc9
Copy full SHA for 2cfebc9

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎app/src/processing/app/Preferences.java

Copy file name to clipboardExpand all lines: app/src/processing/app/Preferences.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,9 @@ static protected void save() {
744744
// Fix for 0163 to properly use Unicode when writing preferences.txt
745745
PrintWriter writer = PApplet.createWriter(preferencesFile);
746746

747-
Enumeration e = table.keys(); //properties.propertyNames();
748-
while (e.hasMoreElements()) {
749-
String key = (String) e.nextElement();
747+
String[] keys = (String[])table.keySet().toArray(new String[0]);
748+
Arrays.sort(keys);
749+
for (String key: keys) {
750750
if (key.startsWith("runtime."))
751751
continue;
752752
writer.println(key + "=" + ((String) table.get(key)));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.