Opened 19 months ago

Closed 19 months ago

Last modified 19 months ago

#17698 closed defect (fixed)

don't merge single checks into a checkgroup

Reported by: Klumbumbus Owned by: team
Priority: normal Milestone: 19.05
Component: Core Version:
Keywords: template_report preset check group Cc:


What steps will reproduce the problem?

  1. use this preset code
    <chunk id="highway_yesno">
        <checkgroup columns="2">
            <check key="bridge" text="Bridge" disable_off="true" />
            <check key="tunnel" text="Tunnel" disable_off="true" />
            <check key="embankment" text="Embankment" disable_off="true" />
            <check key="cutting" text="Cutting" disable_off="true" />
    <chunk id="highway_yesno_oneway">
        <check key="oneway" text="Oneway" />
        <reference ref="highway_yesno" />
        <item name="Test" icon="presets/service/fire_hydrant.svg" type="node" preset_name_label="true">
            <reference ref="highway_yesno_oneway" />
        </item> <!-- Test -->

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Same problem without chunks too. In fact we currently use a workaround in our internal steps preset. I used the example with chunk as chunks are used several times which makes it easy that this error slips in somewhere without noticing when editing the preset file.

Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2019-05-07 22:30:33 +0200 (Tue, 07 May 2019)
Build-Date:2019-05-08 01:30:50
Relative:URL: ^/trunk

Identification: JOSM/1.5 (15060 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1803 (17134)
Memory Usage: 883 MB / 1820 MB (595 MB allocated, but free)
Java version: 1.8.0_211-b12, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 1680x1050
Maximum Screen Size: 1680x1050
VM arguments: [,<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.home=<java.home>\bin, -Djnlpx.origFilenameArg=C:\Program Files (x86)\josm-latest.jnlp, -Djnlpx.remove=false, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlpx.heapsize=NULL,2048m, -Djnlpx.splashport=61278, -Djnlpx.jvm=<java.home>\bin\javaw.exe]
Dataset consistency test: No problems found

Attachments (2)

checkgroupgood.png (2.5 KB) - added by Klumbumbus 19 months ago.
checkgroupbad.png (2.5 KB) - added by Klumbumbus 19 months ago.

Download all attachments as: .zip

Change History (7)

Changed 19 months ago by Klumbumbus

Attachment: checkgroupgood.png added

Changed 19 months ago by Klumbumbus

Attachment: checkgroupbad.png added

comment:1 Changed 19 months ago by Don-vip

what is the workaround we use?

comment:2 Changed 19 months ago by Klumbumbus

Replying to Don-vip:

what is the workaround we use?

use <checkgroup columns="1" >

        <item name="Steps" icon="presets/transport/way/steps.svg" type="way" preset_name_label="true">
            <link wiki="Tag:highway=steps" />
            <key key="highway" value="steps" />
                <reference ref="name_layer" />
                <reference ref="surface" />
                <text key="step_count" text="Amount of Steps" />
                <space />
                <checkgroup columns="1" > <!-- workaround -->
                    <check key="ramp" text="Ramp" />
                <checkgroup columns="2" >
                    <check key="ramp:stroller" text="Stroller ramp" />
                    <check key="ramp:bicycle" text="Bicycle ramp" />
                <combo key="ramp:wheelchair" text="Wheelchair ramp" values="yes,limited,no" />
                <combo key="ramp:luggage" text="Luggage ramp" values="yes,automatic,manual,no" />
                <space />
                <checkgroup columns="1" > <!-- workaround -->
                    <check key="handrail" text="Handrail" />
                <checkgroup columns="3" >
                    <check key="handrail:left" text="Left handrail" />
                    <check key="handrail:center" text="Center handrail" />
                    <check key="handrail:right" text="Right handrail" />
                <space />
                <combo key="conveying" text="Escalator" values="yes,forward,backward,reversible" />
                <space />
                <reference ref="highway_yesno_incline_oneway_lit_width" />
        </item> <!-- Steps -->
Last edited 19 months ago by Klumbumbus (previous) (diff)

comment:3 Changed 19 months ago by Don-vip

Keywords: preset check group added
Milestone: 19.05

comment:4 Changed 19 months ago by Don-vip

Resolution: fixed
Status: newclosed

In 15072/josm:

fix #17698 - don't merge single checks into immediate following checkgroup

comment:5 Changed 19 months ago by Klumbumbus


Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.