Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#12267 closed defect (fixed)

match=0 is not working in MapCSS style, but match="0" is

Reported by: anonymous Owned by: team
Priority: normal Milestone: 16.01
Component: Core Version: tested
Keywords: mapcss Cc: naoliv, Dakon


Attachments (0)

Change History (5)

comment:1 by simon04, 8 years ago

Are you relating to [frequency=0] in the linked MapCSS file?

comment:2 by naoliv, 8 years ago

Cc: naoliv added
Keywords: mapcss added

I am not the one who reported it, but a small test:

Have some object with foo=0 and validate with this:

*[foo=0] {
        throwWarning: tr("foo");

Note how no warning appear.
Now change foo=0 to foo="0" and validate it again.

comment:3 by Dakon, 8 years ago

Cc: Dakon added

comment:4 by simon04, 8 years ago

Resolution: fixed
Status: newclosed

In 9247/josm:

fix #12267 - MapCSS conditions does not handle unquoted 0 value

Such as in [frequency=0].

comment:5 by simon04, 8 years ago

Milestone: 16.01

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. 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.