Modify

Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#9177 closed defect (fixed)

Bilder mit Track manuell justieren

Reported by: geozeisig Owned by: team
Priority: normal Milestone: 13.11
Component: Core Version: latest
Keywords: Bilder mit Track synchronisieren Cc: Don-vip

Description

Ich versuche zu einen track Bilder zu importieren. In dem sich öffnenden Fenster muss oben eine GPS-Spur ausgewählt werden. Es werden aber keine tracks zur Auswahl angeboten. Auch mit "eine andere Spur laden" erhält man einen Fehler

Attachments (0)

Change History (10)

comment:1 by bastiK, 12 years ago

Bitte etwas mehr Informationen!

  • Ist das immer so, oder nur für diesen bestimmten Track?
  • Wie importierst du die Bilder, per Rechtsklick auf die GPX-Ebene im Ebenendialog?
  • Bitte "Help > Statusreport" anfügen (den oberen Teil)
  • Was für einen Fehler erhältst du?
Last edited 12 years ago by bastiK (previous) (diff)

comment:2 by geozeisig, 12 years ago

Ich importiere die Bilder im Ebenendialog mit Rechtsklick. Da kein track einstellbar ist wird auch nichts Importiert. Wenn die Bilder mit anderen Programmen georeferenziert sind, werden sie importiert.
Mit der Version Tested ist noch alles OK.

Repository Root: http://josm.openstreetmap.de/svn
Build-Date: 2013-10-08 01:35:02
Last Changed Author: Don-vip
Revision: 6317
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
URL: http://josm.openstreetmap.de/svn/trunk
Last Changed Date: 2013-10-07 22:45:15 +0200 (Mon, 07 Oct 2013)
Last Changed Rev: 6317

Identification: JOSM/1.5 (6317 de) Windows 7 32-Bit
Memory Usage: 108 MB / 989 MB (40 MB allocated, but free)
Java version: 1.7.0_25, Oracle Corporation, Java HotSpot(TM) Client VM
VM arguments: [-Xmx1024M]
Dataset consistency test: No problems found

Plugin: FixAddresses (29971)
Plugin: OpeningHoursEditor (29854)
Plugin: PicLayer (29854)
Plugin: SeaMapEditor (29918)
Plugin: buildings_tools (30010)
Plugin: mirrored_download (29854)
Plugin: openstreetbugs (30004)
Plugin: terracer (29854)
Plugin: utilsplugin2 (30015)

java.lang.IllegalArgumentException: setSelectedIndex: 0 out of bounds
	at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
	at org.openstreetmap.josm.gui.layer.geoimage.CorrelateGpxWithImages$LoadGpxDataActionListener.actionPerformed(CorrelateGpxWithImages.java:156)
	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.plaf.basic.BasicButtonListener.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.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$200(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)
Last edited 12 years ago by skyper (previous) (diff)

comment:3 by bastiK, 12 years ago

Confirmed, seems to be a recent regression.

in reply to:  3 comment:4 by AlfonZ, 12 years ago

Cc: Don-vip added

Replying to bastiK:

Confirmed, seems to be a recent regression.

I didn't get any exception, but the "gpx track not appearing in the combo" in the Correlate images with GPX track dialog looks to be caused by r6246.

JosmComboBox used to take Vector directly (till r6288, that is) and doesn't cope well with List it's getting now.

comment:5 by Don-vip, 12 years ago

I thought having checked that this constructor wasn't used before removing it, you can reads it if it's not the case (not sure to understand this ticket)

comment:6 by AlfonZ, 12 years ago

  • src/org/openstreetmap/josm/gui/layer/geoimage/CorrelateGpxWithImages.java

     
    301301
    302302            Collections.sort(vtTimezones);
    303303
    304             cbTimezones = new JosmComboBox(vtTimezones);
     304            cbTimezones = new JosmComboBox(vtTimezones.toArray());
    305305
    306306            String tzId = Main.pref.get("geoimage.timezoneid", "");
    307307            TimeZone defaultTz;
     
    475475
    476476        panelCb.add(new JLabel(tr("GPX track: ")));
    477477
    478         cbGpx = new JosmComboBox(gpxLst);
     478        cbGpx = new JosmComboBox(gpxLst.toArray());
    479479        if (defaultItem != null) {
    480480            cbGpx.setSelectedItem(defaultItem);
    481481        }

helped, I am not sure though, if it's the right solution.

comment:7 by bastiK, 12 years ago

Resolution: fixed
Status: newclosed

In 6318/josm:

fixed #9177 - combobox not correctly constructed (patch by AlfonZ)

in reply to:  6 comment:8 by bastiK, 12 years ago

Replying to AlfonZ:

helped, I am not sure though, if it's the right solution.

spot-on! :)

comment:9 by Don-vip, 11 years ago

Milestone: 13.11 (6383)

comment:10 by stoecker, 8 years ago

Milestone: 13.11 (6383)13.11

Milestone renamed

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.