Revision 5758

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/TocItemBranch.java
101 101
	public Icon getIcon() {
102 102
		// TODO Pedirle el icono a la capa. Por defecto habr? un icono
103 103
		// para vectoriales y otro para raster, pero se podr?n cambiar.
104
		
104 105
		if (icolayer == null) {
105
			this.setIcon(defaultIcon);
106
			this.setIcon(this.lyr.getTocImageIcon());
106 107
		}
107 108
		
108 109
		return icolayer;
......
120 121
			return;
121 122
		}		
122 123
	}
124
	private void setIcon(ImageIcon icon) {
125
		if (icon!=null) {		
126
			icolayer = icon;
127
			return;
128
		} else {
129
			this.setIcon(defaultIcon);
130
		}
131
		
132
	}
123 133

  
124 134
	public FLayer getLayer() {
125 135
		return lyr;

Also available in: Unified diff