Revision 41223

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java
1029 1029
    }
1030 1030

  
1031 1031
    private boolean isLayerToSnap() {
1032

  
1033
        if (this.getMapContext() == null) {
1034
            /*
1035
             * This happens with the graphics layer because it has no parent
1036
             */
1037
            return false;
1038
        } else {
1039
            return this.getMapContext().getLayersToSnap().contains(this);
1040
        }
1032 1041
    	
1033
    	boolean resp = this.getMapContext().getLayersToSnap().contains(this);
1034
    	return resp;
1035
    	
1036 1042
    	/*
1037 1043
    	Iterator itersnap = this.getMapContext().getLayersToSnap().iterator();
1038 1044
    	Object item = null;

Also available in: Unified diff