Revision 20345 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/JComboBoxUnits.java

View differences:

JComboBoxUnits.java
74 74
	public JComboBoxUnits(boolean includePixel) {
75 75
		super();
76 76
		String[] names=MapContext.getDistanceNames();
77
		String[] units = new String[names.length];
77

  
78 78
		for (int i = 0; i < names.length; i++) {
79
			units[i] = names[i];
79
			super.addItem(PluginServices.getText(this,names[i]));
80 80
		}
81

  
82
		for (int i = 0; i < units.length; i++) {
83
			super.addItem(units[i]);
84
		}
85 81
		if (includePixel) {
86 82
			super.addItem(PluginServices.getText(this, "pixels"));
87 83
			setSelectedItem(PluginServices.getText(this, "pixels"));

Also available in: Unified diff