Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#20756 closed defect (fixed)

Copy entry from Command Stack results in a JLabel instead of the text

Reported by: mdk Owned by: team
Priority: normal Milestone: 21.04
Component: Core Version:
Keywords: template_report clipboard Cc:

Description

What steps will reproduce the problem?

  1. Select an entry of the command stack.
  2. Copy (CTRL-C)
  3. Paste the result in an any text edior

What is the expected result?

The text shown in the Command stack (like "Move 1 node").

What happens instead?

Much more text:

javax.swing.JLabel[,0,0,0x0,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=javax.swing.ImageIcon@31d192c3,disabledIcon=,horizontalAlignment=CENTER,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=Move 1 node,verticalAlignment=CENTER,verticalTextPosition=CENTER]

Please provide any additional information below. Attach a screenshot if possible.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-04-12 22:43:35 +0200 (Mon, 12 Apr 2021)
Revision:17763
Build-Date:2021-04-13 01:30:58
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (17763 en) Linux Ubuntu 20.10
Memory Usage: 315 MB / 1980 MB (101 MB allocated, but free)
Java version: 15+36-Ubuntu-1, Private Build, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 3840×2160 (scaling 2.00×2.00)
Maximum Screen Size: 3840×2160
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: de_CH.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Desktop environment: ubuntu:GNOME
Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-1
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-20200323-1build1
VM arguments: [--add-modules=java.scripting,java.sql, -Djosm.restart=true, -Djosm.dir.name=JOSM-latest, -Djava.net.useSystemProxies=true]

Plugins:
+ FastDraw (35640)
+ HouseNumberTaggingTool (35640)
+ OpeningHoursEditor (35640)
+ RoadSigns (35640)
+ SimplifyArea (35640)
+ buildings_tools (35669)
+ contourmerge (v0.1.6)
+ imagery-xml-bounds (35723)
+ imagery_offset_db (35640)
+ pbf (35720)
+ poly (35640)
+ public_transport (35640)
+ reltoolbox (35640)
+ reverter (35732)
+ terracer (35640)
+ turnrestrictions (35640)
+ utilsplugin2 (35691)
+ wikipedia (1.1.4)

Tagging presets:
+ https://josm.openstreetmap.de/josmfile?page=Presets/OneClick&zip=1
+ https://josm.openstreetmap.de/josmfile?page=Presets/LaneAttributes&preset&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/Maxspeed&style&zip=1

Attachments (0)

Change History (4)

comment:1 by simon04, 4 years ago

Keywords: clipboard added

Copying from most toggle dialogs gives rather unexpected results:

  • Layer: "node 123" when node 123 is selected
  • Properties: "node 123" when node 123 is selected – macOS problem only, see #20759
  • Selection: "node 123" when node 123 is selected
  • Relation: "node 123" when node 123 is selected
  • Command Stack: "javax.swing.JLabel..."
  • Styles: the entire parsed MapCSS for "JOSM default (MapCSS)"
  • Authors: OK
  • Changesets: "Changeset 123" OK
  • Notes: "Note 123: text" OK
Last edited 4 years ago by simon04 (previous) (diff)

comment:2 by simon04, 4 years ago

Milestone: 21.04
Resolution: fixed
Status: newclosed

comment:3 by simon04, 4 years ago

In 17771/josm:

fix #20756 - Copy entry from Command Stack results in a JLabel instead of the text

comment:4 by simon04, 4 years ago

In 17772/josm:

see #20756 - Extract CommandStackDialog.getSelectedCommand

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.