Bug 116252 - Pasted object in Draw does not have a unique name
Summary: Pasted object in Draw does not have a unique name
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
3.6.7.2 release
Hardware: All All
: lowest trivial
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste Shapes
  Show dependency treegraph
 
Reported: 2018-03-07 00:18 UTC by Mat M
Modified: 2019-03-11 16:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mat M 2018-03-07 00:18:30 UTC
Description:
All objects should have a unique name in Draw
When you copy/paste one or more objects, the names of the copies are the same as the original, giving duplicates

Steps to Reproduce:
1. Create two shapes in a Draw document
2. Select on of them
3. Menu Modify>Name, and give an easy name, like Nice Square
4. Select the two shapes
5. Copy and paste them

Actual Results:  
You have two shapes named "Nice Square" and two shapes named "Shape 2"
In the Navigator, whatever the occurence you click on, the selected object is always the first generated one.

Expected Results:
4 shapes named:
Nice Square
Shape 2
Nice Square_1
Shape 2_1


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Same thing occurs when you duplicate a slide. All the contained objects have the same name and should be suffixed. Tell me if this needs a new issue.

About:
Version: 6.0.2.1
Build ID: 1:6.0.2~rc1-0ubuntu0.16.04.1~lo1
Threads CPU : 4; OS : Linux 4.13; UI Render : GL; VCL: gtk2; 
Locale : fr-FR (en_US.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3343.3 Safari/537.36 OPR/53.0.2885.0 (Edition developer)
Comment 1 Buovjaga 2018-03-11 12:24:06 UTC
Repro. Format - Name.

I don't think the duplication needs another report (I assume it goes through the same code path).

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: 22b1d4784d02070ae1933c59cf2c9bb5a5284773
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 10th 2018

Arch Linux 64-bit
Version 3.6.7.2 (Build ID: e183d5b)
Comment 2 Harald Koester 2019-03-11 16:14:51 UTC
Bug also exists in Writer. (Version 6.2.1, Win 10)