Ignore:
Timestamp:
2014-08-01T19:17:40+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #10206 - Check MapCSS validator assertions for local rules if new advanced option validator.check_assert_local_rules is enabled in preferences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/SourceEntry.java

    r7276 r7356  
    88
    99import org.openstreetmap.josm.Main;
     10import org.openstreetmap.josm.tools.Utils;
    1011
    1112/**
     
    178179     */
    179180    public boolean isLocal() {
    180         if (url.startsWith("http://") || url.startsWith("https://") || url.startsWith("resource://"))
    181             return false;
    182         return true;
     181        return Utils.isLocalUrl(url);
    183182    }
    184183
Note: See TracChangeset for help on using the changeset viewer.