Revision 23769

View differences:

trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/colortable/ui/ColorTableGlobalPanel.java
38 38
import org.gvsig.gui.beans.swing.JButton;
39 39
import org.gvsig.raster.IProcessActions;
40 40
import org.gvsig.raster.RasterProcess;
41
import org.gvsig.raster.dataset.IBuffer;
41 42
import org.gvsig.raster.dataset.properties.DatasetListStatistics;
42 43
import org.gvsig.raster.util.BasePanel;
43 44
import org.gvsig.rastertools.colortable.data.ColorTableData;
......
400 401
			// podremos pensar que estamos en un rango RGB y por lo tanto definir
401 402
			// el limite segun los valores RGB, en caso contrario, no deberiamos usar
402 403
			// el valor RGB para mayor fiabilidad
403
			if (((byte) statistics.getMinimun() == (double) statistics.getMinimun()) &&
404
			if (	((FLyrRasterSE) fLayer).getDataType()[0] == IBuffer.TYPE_BYTE &&
405
					((byte) statistics.getMinimun() == (double) statistics.getMinimun()) &&
404 406
					((byte) statistics.getMaximun() == (double) statistics.getMaximun())) {
405 407
				setLimitMaxim(statistics.getMaximunRGB());
406 408
				setLimitMinim(statistics.getMinimunRGB());

Also available in: Unified diff