Modify

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#7829 closed defect (fixed)

Division by zero

Reported by: kr12 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

to reproduce:
make geometry as circle with many points
o
q
o

Attachments (0)

Change History (3)

comment:1 by Don-vip, 12 years ago

Agreed, reproduced with r5312:

java.lang.ArithmeticException: Division undefined
	at java.math.BigDecimal.divide(Unknown Source)
	at org.openstreetmap.josm.tools.Geometry.getCentroid(Geometry.java:630)
	at org.openstreetmap.josm.actions.AlignInCircleAction.actionPerformed(AlignInCircleAction.java:187)
	at javax.swing.SwingUtilities.notifyAction(Unknown Source)
	at javax.swing.JComponent.processKeyBinding(Unknown Source)
	at javax.swing.KeyboardManager.fireBinding(Unknown Source)
	at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
	at javax.swing.JComponent.processKeyBindings(Unknown Source)
	at javax.swing.JComponent.processKeyEvent(Unknown Source)
	...

comment:2 by Don-vip, 12 years ago

Resolution: fixed
Status: newclosed

In 5313/josm:

fix #7829 - Division by zero in Geometry.getCentroid()

comment:3 by Don-vip, 11 years ago

Ticket #6719 has been marked as a duplicate of this ticket.

Modify Ticket

Change Properties
Set your email in Preferences
Action
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.