Skip to content

Commit 2cfebc9

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/src/processing/app/Preferences.java

Lines 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)