Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#21026 closed enhancement (fixed)

Better check for negative numeric values like width, height, ...

Reported by: mdk Owned by: team
Priority: normal Milestone: 21.06
Component: Core validator Version: latest
Keywords: Cc:


What steps will reproduce the problem?

  • add width=-3 to a waterway=stream


  • add height=-4 to a building=yes


What is the expected result?

A warning that negative values are not allowed.

What happens instead?

An unspecific warning:
unusual value of width: meters is default: point is decimal separator: if units, put space than unit

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

In general numeric tags which didn't support negative values should be checked for negative values.

Follow up of #14532

Attachments (0)

Change History (5)

comment:1 by Klumbumbus, 3 years ago

Resolution: fixed
Status: newclosed

In 17934/josm:

Fix #21026, see #14532 - Better warnings for negative numeric values

comment:2 by Klumbumbus, 3 years ago

Milestone: 21.06

comment:3 by Klumbumbus, 3 years ago

In 17938/josm:

See #21026, see #14532 - Fix unit test

comment:4 by Klumbumbus, 3 years ago

In 17939/josm:

See #21026, see #14532 - Fix unit test

comment:5 by Klumbumbus, 3 years ago

In 17955/josm:

see #21026, see #14532 - Fix i18n

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.