Revision 74 org.gvsig.jcrs/trunk/extJCRS/src/org/gvsig/crs/gui/panels/ProjChooserPanel.java
ProjChooserPanel.java | ||
---|---|---|
80 | 80 |
|
81 | 81 |
public ProjChooserPanel(IProjection proj) { |
82 | 82 |
super(proj); |
83 |
/* |
|
84 |
* We should not take the SRS from the view |
|
85 |
* if we have one as parameter |
|
86 |
* |
|
83 | 87 |
IProjection pr = proj; |
84 | 88 |
IWindow activeWindow = PluginServices.getMDIManager().getActiveWindow(); |
85 | 89 |
if (activeWindow instanceof AbstractViewPanel) { |
86 | 90 |
AbstractViewPanel activeView = (AbstractViewPanel) activeWindow; |
87 | 91 |
pr = activeView.getMapControl().getProjection(); |
88 | 92 |
} |
89 |
AddLayerDialog.setLastProjection(pr); |
|
90 |
setCurProj(pr); |
|
93 |
AddLayerDialog.setLastProjection(pr); |
|
94 |
*/ |
|
95 |
setCurProj(proj); |
|
91 | 96 |
initialize(); |
92 | 97 |
} |
93 | 98 |
|
Also available in: Unified diff