From 79bebe4f947a98a8010b3b376abbac77ceb80801 Mon Sep 17 00:00:00 2001 From: "taylor.smock" Date: Thu, 7 Dec 2023 12:35:12 +0000 Subject: [PATCH] Fix #23341: Paintstyles are wiped when updating when the user has never explicitly changed the styles git-svn-id: https://josm.openstreetmap.de/svn/trunk@18907 0c6e7542-c601-0410-84e7-c038aed88b3b --- src/org/openstreetmap/josm/data/Preferences.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/openstreetmap/josm/data/Preferences.java b/src/org/openstreetmap/josm/data/Preferences.java index 6f66b583b9e..1038eb1fe6b 100644 --- a/src/org/openstreetmap/josm/data/Preferences.java +++ b/src/org/openstreetmap/josm/data/Preferences.java @@ -945,7 +945,7 @@ private void updateMapPaintKnownDefaults() { map.put(url, remotePotlatch2); } } - putListOfMaps("mappaint.style.entries", styleEntries); + putListOfMaps("mappaint.style.entries", styleEntries.isEmpty() ? null : styleEntries); } /**