Modify

Opened 3 years ago

Closed 3 years ago

#12936 closed defect (fixed)

[Patch] Do not use clone() on Dataset.

Reported by: michael2402 Owned by: team
Priority: normal Milestone: 16.06
Component: Core Version:
Keywords: gsoc-core Cc: Don-vip, bastiK, stoecker

Description

The dupplicate layer action used DataSet.clone()

This froze JOSM because both datasets were sharing the same RW-Lock.

I added a copy constructor that copies over all primitives to the new dataset.

Attachments (1)

patch-dataset-clone.patch (6.5 KB) - added by michael2402 3 years ago.

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by michael2402

Attachment: patch-dataset-clone.patch added

comment:1 Changed 3 years ago by Don-vip

Resolution: fixed
Status: newclosed

In 10346/josm:

fix #12936 - Do not use clone() on Dataset (patch by michael2402) - gsoc-core

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.