Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#3589 closed defect (fixed)

Preset on toolbar gives error when nothing selected.

Reported by: anonymous Owned by: jttt
Priority: minor Milestone:
Component: Core Version: latest
Keywords: Cc:

Description

To reproduce, assign a preset group to the toolbar. For example Highways. Then with nothing selected in the main window, click the button and choose one of the presets - Streets for example.

Path: trunk
URL: http://josm.openstreetmap.de/svn/trunk
Repository Root: http://josm.openstreetmap.de/svn
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Revision: 2187
Node Kind: directory
Last Changed Author: ce
Last Changed Rev: 2187
Last Changed Date: 2009-09-25 23:04:28 +0200 (Fri, 25 Sep 2009)

Memory Usage: 29 MB / 63 MB (5 MB allocated, but free)
Java version: 1.6.0_15

Plugins: DirectUpload
dataimport
utilsplugin
wmsplugin
Plugin DirectUpload Version: 17532
Plugin dataimport Version: 16382
Plugin utilsplugin Version: 17550
Plugin wmsplugin Version: 17556

java.awt.IllegalComponentStateException: component must be showing on the screen to determine its location

at java.awt.Component.getLocationOnScreen_NoTreeLock(Unknown Source)
at java.awt.Component.getLocationOnScreen(Unknown Source)
at javax.swing.JPopupMenu.show(Unknown Source)
at org.openstreetmap.josm.gui.tagging.TaggingPresetMenu.actionPerformed(TaggingPresetMenu.java:48)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Attachments (0)

Change History (3)

comment:1 by jttt, 15 years ago

Owner: changed from team to jttt

comment:2 by jttt, 15 years ago

Resolution: fixed
Status: newclosed

(In [2208]) Fix #3589 - Preset on toolbar gives error when nothing selected.

comment:3 by jttt, 15 years ago

Ticket #3597 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 jttt.
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.