Revision 19296 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/enhanced/EnhancedTocMenuEntry.java

View differences:

EnhancedTocMenuEntry.java
148 148
		}
149 149
		
150 150
		this.lyr = (FLyrRasterSE)selectedItems[0];
151
		
152
		RasterProcess process = new StatisticsProcess();
153
		process.addParam("layer", lyr);
154
		process.addParam("force", new Boolean(false));
155
		process.setActions(this);
156
		process.start();	
151
		if(!lyr.getDataSource().getStatistics().isCalculated()) {
152
			RasterProcess process = new StatisticsProcess();
153
			process.addParam("layer", lyr);
154
			process.addParam("force", new Boolean(false));
155
			process.setActions(this);
156
			process.start();	
157
		} else
158
			end(null);
157 159
	}
158 160
	
159 161
	/*

Also available in: Unified diff