[josm-dev] Hello and a bugfix
Michael Schulze
schulze.michael at gmx.net
Tue Dec 23 11:56:06 GMT 2008
Hello,
i wanted to say hello to the list. I am a mapper from Germany and after
collection street data for over a year i now also want to do some
programming on JOSM.
I have found a annoying bug in the current SVN version. If you change
the value of a property, the key also changes to the new value. It seems
to be a copy paste error and the following patch should fix it. I hope
someone can commit it.
Index: src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java
===================================================================
--- src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java (revision 1163)
+++ src/org/openstreetmap/josm/gui/dialogs/PropertiesDialog.java (working copy)
@@ -212,7 +212,7 @@
if (value.equals(""))
value = null; // delete the key
String newkey = keys.getEditor().getItem().toString();
- newkey = java.text.Normalizer.normalize(value, java.text.Normalizer.Form.NFC);
+ newkey = java.text.Normalizer.normalize(newkey, java.text.Normalizer.Form.NFC);
if (newkey.equals("")) {
newkey = key;
value = null; // delete the key instead
Bye,
Michael
More information about the josm-dev
mailing list