Skip to content

Commit

Permalink
Fix #23341: Paintstyles are wiped when updating when the user has nev…
Browse files Browse the repository at this point in the history
…er explicitly changed the styles

git-svn-id: https://josm.openstreetmap.de/svn/trunk@18907 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
taylor.smock committed Dec 7, 2023
1 parent a4b8a0e commit 79bebe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/openstreetmap/josm/data/Preferences.java
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ private void updateMapPaintKnownDefaults() {
map.put(url, remotePotlatch2);
}
}
putListOfMaps("mappaint.style.entries", styleEntries);
putListOfMaps("mappaint.style.entries", styleEntries.isEmpty() ? null : styleEntries);
}

/**
Expand Down

0 comments on commit 79bebe4

Please sign in to comment.