View Issue Details

IDProjectCategoryView StatusLast Update
0002578FreeCADBugpublic2016-06-16 12:44
Reporterposerge Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformwin64OSWindowsOS Version7, 8, 10
Product Version0.16 
Fixed in Version0.17 
Summary0002578: Duplicate objects copied and exported
DescriptionIf several faces are selected on the object
When I select several faces on the object and try to copy/paste that object, several copies of the object are pasted, although only one of the copies is actual object and others are grey entities in the Tree view.
Steps To Reproduce1. Create new document.
2. Switch to Parts workbench
3. Create Cube
4. Select two or more faces on Cube via Ctrl + Click.
5. Copy object
6. Paste to new document or to the same document
7. Observe several entities in Tree view.
Additional InformationI've tried to talk about the bug in the forum but unfortunately no one payed attention to it - http://forum.freecadweb.org/viewtopic.php?f=3&t=15994

I checked the code and found that SelectionSingleton::addSelection is adding separate objects to selection set for each picked face.

Copy command calls MainWindow::createMimeDataFromSelection () which gets selection from Selection().getCompleteSelection(). I think this method should be filtering selection to avoid object duplicates.
TagsNo tags attached.
FreeCAD Information

Activities

poserge

2016-06-06 01:12

reporter   ~0007138

Forgot to add Freecad version:

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.7696 (Git)
Build type: Release
Branch: master
Hash: 7287b479db556da7bc8d33dafc6d0a5b715d427e
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

Related Changesets

FreeCAD: master dc17dbf5

2016-06-09 04:53:24

poserge


Committer: wmayer Details Diff
filter selection to exclude object duplicates before export Affected Issues
0002578
mod - src/Gui/Application.cpp Diff File

FreeCAD: master 8902e18d

2016-06-09 06:09:06

poserge


Committer: wmayer Details Diff
filter objects to exclude duplicates during copy Affected Issues
0002578
mod - src/Gui/MainWindow.cpp Diff File

FreeCAD: master c832fb55

2016-06-16 14:40:28

wmayer

Details Diff
+ issue 0002578: Duplicate objects copied and exported Affected Issues
0002578
mod - src/Gui/Application.cpp Diff File
mod - src/Gui/CommandDoc.cpp Diff File
mod - src/Gui/MainWindow.cpp Diff File

Issue History

Date Modified Username Field Change
2016-06-06 01:05 poserge New Issue
2016-06-06 01:12 poserge Note Added: 0007138
2016-06-16 12:42 wmayer Changeset attached => FreeCAD Master master c832fb55
2016-06-16 12:44 wmayer Changeset attached => FreeCAD Master master 8902e18d
2016-06-16 12:44 wmayer Changeset attached => FreeCAD Master master dc17dbf5
2016-06-16 12:44 wmayer Status new => closed
2016-06-16 12:44 wmayer Resolution open => fixed
2016-06-16 12:44 wmayer Fixed in Version => 0.17