Ignore:
Timestamp:
2015-04-23T18:59:15+02:00 (9 years ago)
Author:
simon04
Message:

fix #11358 - Search: allow negative indices for nth: to search backward

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java

    r8220 r8250  
    397397                .addKeyword("child <i>expr</i>", "child ", tr("all children of objects matching the expression"), "child building")
    398398                .addKeyword("parent <i>expr</i>", "parent ", tr("all parents of objects matching the expression"), "parent bus_stop")
    399                 .addKeyword("nth:<i>7</i>", "nth: ", tr("n-th member of relation and/or n-th node of way"), "nth:5 (child type:relation)")
     399                .addKeyword("nth:<i>7</i>", "nth: ", tr("n-th member of relation and/or n-th node of way"), "nth:5 (child type:relation)", "nth:-1")
    400400                .addKeyword("nth%:<i>7</i>", "nth%: ", tr("every n-th member of relation and/or every n-th node of way"), "nth%:100 (child waterway)")
    401401                , GBC.eol());
Note: See TracChangeset for help on using the changeset viewer.