﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
20564	[Patch] Buildings tool shows wrong cursor icon	Solarspot	team	"==== What steps will reproduce the problem?
1. Prerequisite: change mode to rectangular buildings ({{{Alt+R}}}) and restart JOSM
2. Download map data
3. Set buildings mode to round buildings ({{{Alt+Z}}})
4. Switch to select mode ({{{S}}}) 
5. Switch to buildings mode ({{{B}}})

==== What is the expected result?
The mouse cursor should be the one for round buildings because that mode is currently selected

==== What happens instead?
The mouse cursor will be the one for rectangular buildings as long as the mouse is not moved. If a house is drawn, it will be a circular one (because that is the mode that is actually selected)

==== Please provide any additional information below. Attach a screenshot if possible.
See attached gif.

It seems that Josm memorizes the active rectangular/circular-mode from the last session and always shows the icon for that mode when the building mode is activated with {{{B}}}.

It is quite frustrating to draw wrong shapes even though you were sure that you selected the right mode.

{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-12-28 22:03:23 +0100 (Mon, 28 Dec 2020)
Revision:17428
Build-Date:2020-12-29 02:30:53
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (17428 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 1909 (18363)
Memory Usage: 489 MB / 2048 MB (175 MB allocated, but free)
Java version: 9.0.4+11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 2560×1440 (scaling 1,00×1,00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→32×32, 32×32→32×32
Dataset consistency test: No problems found

Plugins:
+ FastDraw (35640)
+ ImproveOsm (203)
+ OpeningHoursEditor (35640)
+ QuickLabel (18)
+ RoadSigns (35640)
+ SimplifyArea (35640)
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35669)
+ contourmerge (v0.1.6)
+ editgpx (35562)
+ imagery_offset_db (35640)
+ jaxb (35543)
+ jna (35662)
+ merge-overlap (35640)
+ pt_assistant (2.1.10-80-g7d9bba3)
+ rasterfilters (35648)
+ routes (35543)
+ tageditor (35640)
+ turnlanes-tagging (288)
+ turnrestrictions (35640)
+ undelete (35640)
+ utilsplugin2 (35691)
+ wikipedia (1.1.4)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/CommonKeyboardShortcuts&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/public_bookcase&zip=1
+ %UserProfile%\Desktop\xmas.xml
+ https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/Healthcare&zip=1

Map paint styles:
- https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/AddressValidator&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/NewHighwayColors&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Modified&zip=1
- https://github.com/hotosm/HDM-JOSM-style/archive/master.zip
- https://josm.openstreetmap.de/josmfile?page=Styles/PublicTransport&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/PTStops&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Surface-DataEntry&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Maxspeed&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings&zip=1
- %UserProfile%\Downloads\Styles_Coloured_buildings\Styles_Coloured_buildings-style.zip

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/GermanySpecific&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Rules/MissingStreetnumberOrConscriptionnumber&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Rules/MissingWeekdays&zip=1
+ https://www.openrailwaymap.org/validator/de-openrailwaymap.validator.mapcss
+ https://www.openrailwaymap.org/validator/openrailwaymap.validator.mapcss
+ https://raw.githubusercontent.com/OpenNauticalChart/josm/master/Seamark.validator.mapcss
+ https://raw.githubusercontent.com/stefan-a-bauer/josm-validators/master/mtb.validator.mapcss
+ https://github.com/Jungle-Bus/transport_mapcss/raw/master/transport.validator.zip

Last errors/warnings:
- 00003,632 W: Failed to scan file 'public_transport_layer.jar.new' for plugin information. Skipping.
- 00004,099 W: Failed to install plugin '<josm.pref>\plugins\public_transport_layer.jar' from temporary download file '<josm.pref>\plugins\public_transport_layer.jar.new'. zip file is empty: java.util.zip.ZipException: zip file is empty
- 00006,606 W: Failed to open file with extension 'mapcss' and namepart 'style' in zip file 'Styles_Coloured_buildings-style.zip'. Exception was: java.nio.file.NoSuchFileException: %UserProfile%\Downloads\Styles_Coloured_buildings\Styles_Coloured_buildings-style.zip: java.nio.file.NoSuchFileException: %UserProfile%\Downloads\Styles_Coloured_buildings\Styles_Coloured_buildings-style.zip
- 00007,220 W: Failed to load Mappaint styles from '%UserProfile%\Downloads\Styles_Coloured_buildings\Styles_Coloured_buildings-style.zip'. Exception was: java.nio.file.NoSuchFileException: %UserProfile%\Downloads\Styles_Coloured_buildings\Styles_Coloured_buildings-style.zip
- 00007,220 E: java.nio.file.NoSuchFileException: %UserProfile%\Downloads\Styles_Coloured_buildings\Styles_Coloured_buildings-style.zip
- 00008,482 E: java.nio.file.NoSuchFileException: %UserProfile%\Desktop\xmas.xml
- 00008,483 E: %UserProfile%\Desktop\xmas.xml
- 00009,535 W: java.io.IOException: The requested URL https://github.com/Jungle-Bus/transport_mapcss/raw/master/transport.validator.zip was not found
- 00009,646 W: Failed to add https://github.com/Jungle-Bus/transport_mapcss/raw/master/transport.validator.zip to tag checker
- 00009,647 W: java.io.IOException: No file found for: https://github.com/Jungle-Bus/transport_mapcss/raw/master/transport.validator.zip
}}}
"	defect	closed	minor		Plugin buildings_tools		fixed	template_report	
