Index: Lambert.java =================================================================== --- Lambert.java (revision 799) +++ Lambert.java (working copy) @@ -100,21 +100,24 @@ } else { outOfLambertZones = true; // possible when MAX_LAT is used } - if (layoutZone == -1) - layoutZone = currentZone; - else if (layoutZone != currentZone && !outOfLambertZones) { - if ((currentZone < layoutZone && Math.abs(zoneLimits[currentZone] - lt) > cMaxOverlappingZones) - || (currentZone > layoutZone && Math.abs(zoneLimits[layoutZone] - lt) > cMaxOverlappingZones)) { - JOptionPane.showMessageDialog(Main.parent, - tr("IMPORTANT : data positionned far away from\n" - +"the current Lambert zone limits.\n" - +"Undo your last action, Save your work \n" - +"and Start a new layer on the new zone.")); - layoutZone = -1; - } else { - System.out.println("temporarily extends Lambert zone " + layoutZone - + " projection at lat,lon:" + lt + "," + lg); - } + if (!outOfLambertZones) { + if (layoutZone == -1) + layoutZone = currentZone; + else if (layoutZone != currentZone) { + if ((currentZone < layoutZone && Math.abs(zoneLimits[currentZone] - lt) > cMaxOverlappingZones) + || (currentZone > layoutZone && Math.abs(zoneLimits[layoutZone] - lt) > cMaxOverlappingZones)) { + JOptionPane.showMessageDialog(Main.parent, + tr("IMPORTANT : data positionned far away from\n" + + "the current Lambert zone limits.\n" + + "Undo your last action, Save your work \n" + + "and Start a new layer on the new zone.")); + layoutZone = -1; + } else { + System.out.println("temporarily extends Lambert zone " + + layoutZone + " projection at lat,lon:" + lt + "," + + lg); + } + } } if (layoutZone == -1) { return ConicProjection(lt, lg, Xs[currentZone], Ys[currentZone], c[currentZone], n[currentZone]);