Revision 3064 trunk/extensions/extGeoreferencing/src/com/iver/cit/gvsig/gui/toolListeners/GeorefPointerListener.java
GeorefPointerListener.java | ||
---|---|---|
113 | 113 |
FLayer lyr = theView.getMapControl().getMapContext().getLayers().getLayer(i); |
114 | 114 |
if(lyr instanceof FLyrPoints) |
115 | 115 |
lyrPoints = (FLyrPoints)lyr; |
116 |
if(lyr instanceof FLyrGeoRaster && lyr.getName().startsWith("*")) |
|
116 |
if(lyr instanceof FLyrGeoRaster && |
|
117 |
lyr.getName().startsWith("*") && |
|
118 |
lyr.isActive()){ |
|
117 | 119 |
lyrGeoRaster = (FLyrGeoRaster)lyr; |
120 |
lyrPoints = lyrGeoRaster.getFLyrPoints(); |
|
121 |
} |
|
122 |
|
|
123 |
if(lyrPoints == null || lyrGeoRaster == null){ |
|
124 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), |
|
125 |
PluginServices.getText(this, "error_capa_puntos")); |
|
126 |
return; |
|
127 |
} |
|
118 | 128 |
} |
119 | 129 |
dialog = lyrGeoRaster.getGeoDialog(); |
120 | 130 |
|
Also available in: Unified diff