Revision 10401 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/MapControl.java

View differences:

MapControl.java
68 68

  
69 69
import com.iver.cit.gvsig.fmap.crs.CRSFactory;
70 70
import com.iver.cit.gvsig.fmap.edition.commands.CommandListener;
71
import com.iver.cit.gvsig.fmap.layers.LayerCollectionEvent;
71 72
import com.iver.cit.gvsig.fmap.layers.LayerEvent;
72 73
import com.iver.cit.gvsig.fmap.tools.BehaviorException;
73 74
import com.iver.cit.gvsig.fmap.tools.CompoundBehavior;
......
972 973
			}
973 974

  
974 975

  
975
			if (e.getLayerCollectionEvents().length > 0) {
976
				redraw = true;
976
			LayerCollectionEvent[] aux = e.getLayerCollectionEvents(); 
977
			if (aux.length > 0) {
978
				for (int i=0; i < aux.length; i++)
979
				{
980
					if (aux[i].getAffectedLayer().getFLayerStatus().isDriverLoaded())
981
					{
982
						redraw = true;
983
						break;
984
					}
985
				}
986
				
977 987
			}
978 988

  
979 989
			if (e.getLegendEvents().length > 0) {

Also available in: Unified diff