Revision 1320

View differences:

org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.algorithm/org.gvsig.raster.tools.algorithm.swing/org.gvsig.raster.tools.algorithm.swing.impl/src/main/java/org/gvsig/raster/tools/algorithm/swing/impl/maskthreshold/OutputMaskThresholdImpl.java
95 95

  
96 96
	public void actionPerformed(ActionEvent e) {
97 97
		if(e.getSource() == getMethodOutput().getCombo()) {
98
			if(getMethodOutput().getCombo().getSelectedIndex() == 1) {
98
			if(getMethodOutput().getCombo().getSelectedIndex() == 0 ||
99
				getMethodOutput().getCombo().getSelectedIndex() == 1) {
99 100
				getMethodOutput().getTextField().setEnabled(true);
100 101
			} else {
101 102
				getMethodOutput().getTextField().setEnabled(false);
org.gvsig.raster.tools/trunk/org.gvsig.raster.tools/org.gvsig.raster.tools.algorithm/org.gvsig.raster.tools.algorithm.maskthreshold/src/main/java/org/gvsig/raster/tools/algorithm/maskthreshold/MaskthresholdProcess.java
218 218
		threshold = (Double)getDoubleParam(THRESHOLD); //Default 0
219 219
		fixedValue = (Double)getDoubleParam(FIXED_VALUE); //Default 0
220 220
		
221
		if(getStringParam(FILENAME) != null)
221
		if(getStringParam(FILENAME) != null) {
222 222
			filename = getStringParam(PATH) + File.separator + getStringParam(FILENAME);
223
			if(!filename.endsWith(".tif") && !filename.endsWith(".tiff"))
224
				filename += ".tif";
225
		}
223 226
	}
224 227
	
225 228
	/**

Also available in: Unified diff