Changeset 17824 in josm for trunk/src


Ignore:
Timestamp:
2021-04-26T19:31:05+02:00 (4 years ago)
Author:
simon04
Message:

see #20739 - Revert "MapCSS: evaluate class on current and on default layer"

This reverts commit r17745

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.java

    r17799 r17824  
    691691        @Override
    692692        public boolean applies(Environment env) {
    693             return Environment.DEFAULT_LAYER.equals(env.layer)
    694                     ? applies(env, env.layer)
    695                     : applies(env, env.layer) || applies(env, Environment.DEFAULT_LAYER);
    696         }
    697 
    698         private boolean applies(Environment env, String layer) {
    699             Cascade cascade = env.getCascade(layer);
     693            Cascade cascade = env.getCascade();
    700694            return cascade != null && (not ^ cascade.containsKey(id));
    701695        }
Note: See TracChangeset for help on using the changeset viewer.