﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
22536	Delayed rename and improper repaint of layer name in image viewer	skyper	team	"==== What steps will reproduce the problem?
1. Have two geotagged image layers both named `Geotagged Images`
1. Open image viewer and select an image of both layers
1. In the layer toggle dialog rename one layer to `a`
1. Click on the layer name in the image viewer 

==== What is the expected result?
* direct adjustment of the layer name in the image viewer
* proper repaint of layer buttons

==== What happens instead?
* layer name is only adjusted after an action within the image viewer
* if the layer name is shorten, some part of the past name is still visible below the repainted area

==== Please provide any additional information below. Attach a screenshot if possible.
See #21605

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2022-11-23 19:12:12 +0100 (Wed, 23 Nov 2022)
Revision:18604
Build-Date:2022-11-25 02:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18604 en) Linux Debian GNU/Linux 11 (bullseye)
Memory Usage: 322 MB / 512 MB (111 MB allocated, but free)
Java version: 17.0.4+8-Debian-1deb11u1, Debian, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Java package: openjdk-17-jre:amd64-17.0.4+8-1~deb11u1
libcommons-compress-java: libcommons-compress-java:all-1.20-1
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20201225-1
VM arguments: [-Djosm.home=<josm.pref>]
}}}
"	defect	closed	normal		Core image mapping	latest	duplicate	template_report image viewer layer name	
