SANKORE-973

Interact with item bug with eraser
preferencesAboutTextFull
Anatoly Mihalchenko 12 years ago
parent f1cb187953
commit 569e4dd195
  1. 7
      src/domain/UBGraphicsPolygonItem.cpp
  2. 1
      src/domain/UBGraphicsPolygonItem.h

@ -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 @@
#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;

Loading…
Cancel
Save