Index: applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java
===================================================================
--- applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java	(revision 23060)
+++ applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyCard.java	(revision 23061)
@@ -194,5 +194,5 @@
 		dlg.sM01StatusBar.setText(getErrMsg());
 
-		if ((getBuoyIndex() != 0) && (getStyleIndex() != 0)) {
+		if ((getBuoyIndex() > 0) && (getStyleIndex() > 0)) {
 			dlg.tfM01Name.setEnabled(true);
 			dlg.tfM01Name.setText(getName());
Index: applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyIsol.java
===================================================================
--- applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyIsol.java	(revision 23060)
+++ applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyIsol.java	(revision 23061)
@@ -110,5 +110,5 @@
 		dlg.sM01StatusBar.setText(getErrMsg());
 
-		if ((getBuoyIndex() != 0) && (getStyleIndex() != 0)) {
+		if ((getBuoyIndex() > 0) && (getStyleIndex() > 0)) {
 			dlg.tfM01Name.setEnabled(true);
 			dlg.tfM01Name.setText(getName());
Index: applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java
===================================================================
--- applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java	(revision 23060)
+++ applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java	(revision 23061)
@@ -351,5 +351,5 @@
 		dlg.sM01StatusBar.setText(getErrMsg());
 
-		if ((getBuoyIndex() != 0) && (getStyleIndex() != 0)) {
+		if ((getBuoyIndex() > 0) && (getStyleIndex() > 0)) {
 			dlg.tfM01Name.setEnabled(true);
 			dlg.tfM01Name.setText(getName());
Index: applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyNota.java
===================================================================
--- applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyNota.java	(revision 23060)
+++ applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyNota.java	(revision 23061)
@@ -52,5 +52,5 @@
 		dlg.sM01StatusBar.setText(getErrMsg());
 
-		if (getBuoyIndex() != 0) {
+		if (getBuoyIndex() > 0) {
 			dlg.cM01Radar.setEnabled(true);
 			dlg.cM01Radar.setVisible(true);
Index: applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java
===================================================================
--- applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java	(revision 23060)
+++ applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java	(revision 23061)
@@ -109,5 +109,5 @@
 		dlg.sM01StatusBar.setText(getErrMsg());
 
-		if ((getBuoyIndex() != 0) && (getStyleIndex() != 0)) {
+		if ((getBuoyIndex() > 0) && (getStyleIndex() > 0)) {
 			dlg.tfM01Name.setEnabled(true);
 			dlg.tfM01Name.setText(getName());
Index: applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
===================================================================
--- applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java	(revision 23060)
+++ applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java	(revision 23061)
@@ -143,5 +143,5 @@
 		dlg.sM01StatusBar.setText(getErrMsg());
 
-		if ((getBuoyIndex() != 0) && (getStyleIndex() != 0)) {
+		if ((getBuoyIndex() > 0) && (getStyleIndex() > 0)) {
 			dlg.tfM01Name.setEnabled(true);
 			dlg.tfM01Name.setText(getName());
