Commit 338a6978 authored by Claudio Valerio's avatar Claudio Valerio

copy/paste work correctly. Issue 4

parent 82453e51
...@@ -2220,11 +2220,7 @@ void UBBoardController::copy() ...@@ -2220,11 +2220,7 @@ void UBBoardController::copy()
UBItem* ubItem = dynamic_cast<UBItem*>(gi); UBItem* ubItem = dynamic_cast<UBItem*>(gi);
if (ubItem && !mActiveScene->tools().contains(gi)) if (ubItem && !mActiveScene->tools().contains(gi))
{ selected << ubItem;
UBItem *itemCopy = ubItem->deepCopy();
if (itemCopy)
selected << itemCopy;
}
} }
if (selected.size() > 0) if (selected.size() > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment