﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22860	[Patch] Geotagged Images dialog confuses tabs	GerdP	GerdP	"==== What steps will reproduce the problem?
Not sure how to reproduce
1. have multiple layers with geotagged images
2. press Y to open the Geotagged Images dialog with an image of one layer
3. click on an image that belongs to another image layer, the dialog shows tabs for the different layers, one has an asterisc (*) that marks it as active(?) 
4. click one the left/right buttons

==== What is the expected result?
The previous/next image that belongs to the active image layer
==== What happens instead?
Sometimes a different layer is activated and unexpected images are shown. Even when I close the unwanted tab it is reopend with a click on the left/right button.
Makes the dialog unuasble.
Seems this was introduced with a recend change, never saw this before !r18700.

==== Please provide any additional information below. Attach a screenshot if possible.
If I got that right I just have to wait a few seconds to restore the expected behaviour or maybe switch to a different program. 
{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-03-30 16:51:36 +0200 (Thu, 30 Mar 2023)
Revision:18700
Build-Date:2023-03-31 01:30:56
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18700 en) Windows 10 64-Bit
OS Build number: Windows 10 Home 2009 (19045)
Memory Usage: 1527 MB / 1972 MB (339 MB allocated, but free)
Java version: 17.0.4+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_DE
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18531, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\HWConsole.exe]
Dataset consistency test: No problems found

Plugins:
+ OpeningHoursEditor (35924)
+ RoadSigns (36038)
+ apache-commons (36034)
+ buildings_tools (36011)
+ contourmerge (v0.1.9)
+ ejml (35924)
+ geotools (36028)
+ jackson (36034)
+ jaxb (35952)
+ jts (36004)
+ o5m (35893)
+ opendata (36025)
+ pbf (36034)
+ poly (35976)
+ reltoolbox (35976)
+ reverter (36043)
+ undelete (36011)
+ utilsplugin2 (36011)

Validator rules:
+ c:\josm\core\resources\data\validator\combinations.mapcss
+ c:\josm\core\resources\data\validator\geometry.mapcss
+ c:\josm\core\resources\data\validator\unnecessary.mapcss
+ d:\java_tools\JOSM\mygeometry.mapcss
+ https://josm.openstreetmap.de/josmfile?page=Rules/GermanySpecific&zip=1

Last errors/warnings:
- 00764.499 E: Failed to locate image 'Flag, Blue'
- 00764.500 E: Failed to locate image 'Flag, Blue'
- 00764.500 E: Failed to locate image 'Flag, Blue'
- 00764.501 E: Failed to locate image 'Flag, Blue'
- 00764.502 E: Failed to locate image 'Flag, Blue'
- 00764.502 E: Failed to locate image 'Flag, Blue'
- 00764.504 E: Failed to locate image 'Flag, Blue'
- 00764.505 E: Failed to locate image 'Flag, Blue'
- 00764.505 E: Failed to locate image 'Flag, Blue'
- 00764.506 E: Failed to locate image 'Flag, Blue'
}}}
"	defect	closed	normal	24.01	Core image mapping		fixed	template_report regression	taylor.smock
