Revision 41134

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/legend/gui/AttrInTableLabeling.java
103 103
		aux.addComponent(getRdBtnFixedHeight(), getTxtHeightField());
104 104
		aux.addComponent(PluginServices.getText(this, "rotation_height") + ":", getCmbRotationField());
105 105
		aux.addComponent(PluginServices.getText(this, "units") + ":", getCmbUnits());
106
		aux.addComponent(PluginServices.getText(this,""),getCmbReferenceSystem());
106
		aux.addComponent(PluginServices.getText(this,"reference_system"),getCmbReferenceSystem());
107 107
		panel.add(aux);
108 108

  
109 109
		aux = new GridBagLayoutPanel();
......
196 196

  
197 197
	private JComboBoxUnits getCmbUnits() {
198 198
		if (cmbUnits == null) {
199
			cmbUnits = new JComboBoxUnits();
200
			cmbUnits.setSelectedIndex(
201
					ApplicationLocator.getManager().getPreferences().getInt("DefaultDistanceUnits", 0)
202
			);
199
			cmbUnits = new JComboBoxUnits(true);
203 200
			cmbUnits.setName("CMBUNITS");
204 201
		}
205 202

  
......
209 206
	private JComboBoxUnitsReferenceSystem getCmbReferenceSystem(){
210 207
		if(cmbReferenceSystem == null){
211 208
			cmbReferenceSystem = new JComboBoxUnitsReferenceSystem();
209
			cmbReferenceSystem.setSelectedIndex(0);
212 210
			cmbReferenceSystem.setName("CMBREFSYST");
213 211
		}
214 212
		return cmbReferenceSystem;

Also available in: Unified diff