Ticket #10350: 10350.plugin.patch

File 10350.plugin.patch, 879 bytes (added by simon04, 4 years ago)
  • plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/TagBufferAction.java

    diff --git a/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/TagBufferAction.java b/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/TagBufferAction.java
    index 6c10375..5b3d526 100644
    a b public class TagBufferAction extends JosmAction { 
    7373
    7474    @Override
    7575    protected void updateEnabledState( Collection<? extends OsmPrimitive> selection ) {
     76        if (isCalledFromLayerChange()) {
     77            // #10350
     78            return;
     79        }
    7680        // selection changed => check if selection is completely different from before
    7781        boolean foundOld = false;
    7882        if( selection != null ) {