Revision: 5840 http://sourceforge.net/p/jump-pilot/code/5840 Author: michaudm Date: 2018-06-05 19:42:43 +0000 (Tue, 05 Jun 2018) Log Message: ----------- Revert change on EnsureAllLayersHaveSRIDStyle : layerListener is added once during the plugin initialization and must not be removed when a Layer is removed.
Modified Paths: -------------- core/trunk/src/org/openjump/core/ccordsys/srid/EnsureAllLayersHaveSRIDStylePlugIn.java Modified: core/trunk/src/org/openjump/core/ccordsys/srid/EnsureAllLayersHaveSRIDStylePlugIn.java =================================================================== --- core/trunk/src/org/openjump/core/ccordsys/srid/EnsureAllLayersHaveSRIDStylePlugIn.java 2018-06-05 15:55:50 UTC (rev 5839) +++ core/trunk/src/org/openjump/core/ccordsys/srid/EnsureAllLayersHaveSRIDStylePlugIn.java 2018-06-05 19:42:43 UTC (rev 5840) @@ -57,9 +57,6 @@ public void layerChanged(LayerEvent e) { if (e.getLayerable() instanceof Layer) { ensureHasSRIDStyle((Layer) e.getLayerable()); - if (e.getType() == LayerEventType.REMOVED) { - layerManager.removeLayerListener(this); - } } } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel