Modify

Opened 4 years ago

Closed 3 years ago

#20419 closed defect (fixed)

SVG icons in archives with same filename are duplicated

Reported by: JeroenHoek Owned by: Don-vip
Priority: normal Milestone: 21.08
Component: Core Version:
Keywords: Cc:

Description (last modified by JeroenHoek)

With two Map Paint Styles in use that both have an icon called 'icon.svg' attached to their respective Trac-pages, JOSM shows them correctly in the Map paint preferences dialog where they can be downloaded, but uses the same icon from one of them for both in the menu and preferences window.

It looks like the icons get conflated if the name is the same. The icon name should probably be prefixed with the Map Paint Style name.

Reproduction

  • Go to the Map paint preferences, and refresh the list of styles
  • See that Parking lanes and Sidewalks and footways (with knobs on) both have distinct icons
  • Enable them both
  • See that the same icon is reused for both

Correct

Map paint preferences. This is as it should be.

Incorrect

Map Paint Styles menu. Icon of Parking lanes is reused for Sidewalks and footways.

Versions tested

Seen in version 17428 and 17475.

Attachments (5)

Screenshot from 2021-01-23 14-28-08.png (72.3 KB ) - added by JeroenHoek 4 years ago.
Map paint preferences. This is as it should be.
2021-01-23-142850_2560x1440_scrot.png (24.0 KB ) - added by JeroenHoek 4 years ago.
Map Paint Styles menu. Icon of Parking lanes is reused for Sidewalks and footways.
test-a.mapcss.zip (1.9 KB ) - added by JeroenHoek 4 years ago.
Test A
test-b.mapcss.zip (1.9 KB ) - added by JeroenHoek 4 years ago.
Test B
Screenshot from 2021-01-31 09-49-25.png (18.4 KB ) - added by JeroenHoek 4 years ago.
Manifestation of bug.

Download all attachments as: .zip

Change History (11)

by JeroenHoek, 4 years ago

Map paint preferences. This is as it should be.

by JeroenHoek, 4 years ago

Map Paint Styles menu. Icon of Parking lanes is reused for Sidewalks and footways.

comment:1 by JeroenHoek, 4 years ago

Description: modified (diff)

comment:3 by JeroenHoek, 4 years ago

I can reproduce this with two local dummy Map Paint Styles as well. I have attached them in their zipped forms.

When I add both test A and B in their unzipped forms (selecting their mapcss files), the one added later gets the icon of the one loaded first.

When I add both as zip-files, they both get the icon from the Parking lanes style already present.

I am going to give the affected Map Paint Styles differently named icons to prevent JOSM users from seeing this bug: the attached files should reproduce it.

by JeroenHoek, 4 years ago

Attachment: test-a.mapcss.zip added

Test A

by JeroenHoek, 4 years ago

Attachment: test-b.mapcss.zip added

Test B

by JeroenHoek, 4 years ago

Manifestation of bug.

comment:4 by JeroenHoek, 4 years ago

Manifestation of bug.

comment:5 by Don-vip, 3 years ago

Milestone: 21.08
Owner: changed from team to Don-vip
Status: newassigned
Summary: Map Paint Style icons are duplicatedSVG icons in archives with same filename are duplicated

comment:6 by Don-vip, 3 years ago

Resolution: fixed
Status: assignedclosed

In 18178/josm:

fix #20419 - disable svgSalamander filename-based cache when loading SVG files from archives (we have our own cache)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.