View Issue Details

IDProjectCategoryView StatusLast Update
0002578FreeCADBugpublic2016-06-16 12:44
ReporterposergeAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Platformwin64OSWindowsOS Version7, 8, 10
Product Version0.16 
Target VersionFixed 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.

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

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