Changeset 16351 in osm for applications


Ignore:
Timestamp:
2009-07-05T22:24:18+02:00 (15 years ago)
Author:
stoecker
Message:

fixed #2828.

Location:
applications/editors/josm/plugins/wmsplugin/src/wmsplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java

    r16308 r16351  
    9696
    9797        if (urlWithPatterns) {
    98             str = str.replaceAll("{proj}", proj)
    99             .replaceAll("{bbox}", bbox)
    100             .replaceAll("{width}", String.valueOf(wi))
    101             .replaceAll("{height}", String.valueOf(ht));
     98            str = str.replaceAll("\\{proj\\}", proj)
     99            .replaceAll("\\{bbox\\}", bbox)
     100            .replaceAll("\\{width\\}", String.valueOf(wi))
     101            .replaceAll("\\{height\\}", String.valueOf(ht));
    102102        } else {
    103103            if(!str.contains("?"))
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSPlugin.java

    r16308 r16351  
    9999                name = prefs.get(key);
    100100            else if (elements[3].equals("url"))
    101                 url = prefs.get(key);
     101            {
     102                /* FIXME: Remove the if clause after some time */
     103                if(!prefs.get(key).startsWith("yahoo:")) /* legacy stuff */
     104                    url = prefs.get(key);
     105            }
    102106            else if (elements[3].equals("cookies"))
    103107                cookies = prefs.get(key);
Note: See TracChangeset for help on using the changeset viewer.