Revision 24283 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/legend/gui/SingleSymbol.java
SingleSymbol.java | ||
---|---|---|
67 | 67 |
import com.iver.cit.gvsig.fmap.core.symbols.ISymbol; |
68 | 68 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
69 | 69 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
70 |
import com.iver.cit.gvsig.fmap.layers.XMLException; |
|
70 | 71 |
import com.iver.cit.gvsig.fmap.rendering.ILegend; |
71 | 72 |
import com.iver.cit.gvsig.fmap.rendering.LegendFactory; |
72 | 73 |
import com.iver.cit.gvsig.fmap.rendering.SingleSymbolLegend; |
... | ... | |
114 | 115 |
} |
115 | 116 |
if (legend instanceof SingleSymbolLegend) { |
116 | 117 |
setSymbol(legend.getDefaultSymbol()); |
117 |
this.legend = (SingleSymbolLegend) legend; |
|
118 |
try { |
|
119 |
this.legend = (SingleSymbolLegend) legend.cloneLegend(); |
|
120 |
} catch (XMLException e) { |
|
121 |
// TODO Auto-generated catch block |
|
122 |
e.printStackTrace(); |
|
123 |
} |
|
118 | 124 |
|
119 | 125 |
} else { |
120 | 126 |
this.legend = (SingleSymbolLegend) LegendFactory. |
Also available in: Unified diff