Revision 26348 branches/v2_0_0_prep/extensions/extRemoteSensing/src/org/gvsig/remotesensing/profiles/gui/LineProfileOptionsPanel.java

View differences:

LineProfileOptionsPanel.java
118 118
		super();
119 119
		this.mapControl = mainPanel.getMapControl();
120 120
		this.mainPanel = mainPanel;
121
		this.fLayer = mapControl.getMapContext().getLayers().getLayer(0);;
121
		try {
122
			this.fLayer = mainPanel.getFlayer().cloneLayer();
123
		} catch (Exception e) {
124
			// TODO Auto-generated catch block
125
			e.printStackTrace();
126
		}
122 127
		BorderLayout bd= new BorderLayout();
123 128
		listener= new LineProfileOptionsListener(this);
124 129
		bd.setHgap(1);

Also available in: Unified diff