Revision 41204
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.projection.app/org.gvsig.projection.app.proj4j/src/main/java/org/gvsig/proj/app/mainplugin/CoordinateReferenceSystemSelectionDialog.java | ||
---|---|---|
140 | 140 |
* @param proj |
141 | 141 |
*/ |
142 | 142 |
public void setProjection(IProjection proj) { |
143 |
CoordinateReferenceSystem crs = null; |
|
143 | 144 |
lastProjection = proj; |
144 |
CoordinateReferenceSystem crs = |
|
145 |
((DefaultIProjection) proj).getCoordinateReferenceSystem(); |
|
145 |
if( proj != null ) { |
|
146 |
crs = ((DefaultIProjection) proj).getCoordinateReferenceSystem(); |
|
147 |
} |
|
146 | 148 |
component.setCoordinateReferenceSystem(crs); |
147 | 149 |
} |
148 | 150 |
|
Also available in: Unified diff