Commit 569e4dd1 authored by Anatoly Mihalchenko's avatar Anatoly Mihalchenko

SANKORE-973

 Interact with item bug with eraser
parent f1cb1879
...@@ -154,7 +154,12 @@ UBItem* UBGraphicsPolygonItem::deepCopy() const ...@@ -154,7 +154,12 @@ UBItem* UBGraphicsPolygonItem::deepCopy() const
UBGraphicsPolygonItem* UBGraphicsPolygonItem::deepCopy(const QPolygonF& pol) const UBGraphicsPolygonItem* UBGraphicsPolygonItem::deepCopy(const QPolygonF& pol) const
{ {
UBGraphicsPolygonItem* copy = new UBGraphicsPolygonItem(pol); QPolygonF p(pol);
if (parentItem()!=NULL)
{
p = mapToItem(parentItem(), p);
}
UBGraphicsPolygonItem* copy = new UBGraphicsPolygonItem(p, parentItem());
copyItemParameters(copy); copyItemParameters(copy);
......
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "core/UB.h" #include "core/UB.h"
#include "UBItem.h" #include "UBItem.h"
#include "UBGraphicsStrokesGroup.h" #include "UBGraphicsStrokesGroup.h"
#include "domain/UBGraphicsGroupContainerItem.h"
class UBItem; class UBItem;
class UBGraphicsScene; class UBGraphicsScene;
......
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