Revision 6938 trunk/libraries/libUI/src/org/gvsig/gui/beans/controls/comboscale/ComboScale.java

View differences:

ComboScale.java
35 35
		}
36 36

  
37 37
		public String toString() {
38
			//String s = String.valueOf(value);
39 38
			return NumberFormat.getNumberInstance().format(value);
40 39
		}
41 40

  
......
223 222
		try {
224 223
			long scale = Long.parseLong((String)value);
225 224

  
226
			if (scale == -1)
225
			if (scale < 0)
227 226
				return null;
228 227

  
229
			scale = Math.abs(scale);
230 228
			ComboScaleItem item = new ComboScaleItem(scale);
231 229
			if (item.equals(jComboBox.getSelectedItem()))
232 230
				return item;

Also available in: Unified diff