Changes between Initial Version and Version 2 of Ticket #22156


Ignore:
Timestamp:
2022-06-21T17:23:22+02:00 (4 years ago)
Author:
taylor.smock
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22156

    • Property Owner changed from team to taylor.smock
    • Property Status newassigned
    • Property Summary Dailog Filter: "nth%: 0" - and the error occurredArithmeticException: / by zero in org.openstreetmap.josm.data.osm.search.SearchCompiler$Nth.match
  • Ticket #22156 – Description

    initial v2  
    11==== What steps will reproduce the problem?
    22
    3 1.  filter: "nth%: 0"   and the error occurred !
     31.  filter: "`nth%: 0`"   and the error occurred !
    44
    55==== What is the expected result?
     
    1919In the documentation I found nth and nth% (without explanation what the "%" stands for).
    2020I checked some options:
    21 - "nth%: 2
    22 - "nth%: 1"
    23 **- "nth%: 0" - and the error occurred**
     21- "`nth%: 2`
     22- "`nth%: 1`"
     23**- "`nth%: 0`" - and the error occurred**
    2424
    2525---------------------------------------------------
     
    2828---------------------------------------------------
    2929josm download via overpass:
    30  
     30{{{
    3131[bbox: 47.5, 7.6, 48, 9 ];
    3232way[railway=rail]->.w1;
     
    3535(._;>;);
    3636out meta;
    37 
     37}}}
    3838----------------------------------------------------
    3939used filters:
    4040
    41 filter #1:  "ways: 1
     41filter #1:  "`ways: 1`
    4242             (with:  E: on,  H: on,  I: off, M: "A")
    4343
    44 filter #2:  "child (type:way & railway:) & ways: 2-  & -railway=switch"
     44filter #2:  "`child (type:way & railway:) & ways: 2-  & -railway=switch`"
    4545             (with:  E: on,  H: off,  I: on, M: "A")
    4646