|
|
@ -174,7 +174,7 @@ QColor UBGraphicsPolygonItem::color() const |
|
|
|
|
|
|
|
|
|
|
|
UBItem* UBGraphicsPolygonItem::deepCopy() const |
|
|
|
UBItem* UBGraphicsPolygonItem::deepCopy() const |
|
|
|
{ |
|
|
|
{ |
|
|
|
UBGraphicsPolygonItem* copy = new UBGraphicsPolygonItem(); |
|
|
|
UBGraphicsPolygonItem* copy = new UBGraphicsPolygonItem(polygon(), 0); |
|
|
|
copyItemParameters(copy); |
|
|
|
copyItemParameters(copy); |
|
|
|
return copy; |
|
|
|
return copy; |
|
|
|
} |
|
|
|
} |
|
|
@ -185,7 +185,6 @@ void UBGraphicsPolygonItem::copyItemParameters(UBItem *copy) const |
|
|
|
UBGraphicsPolygonItem *cp = dynamic_cast<UBGraphicsPolygonItem*>(copy); |
|
|
|
UBGraphicsPolygonItem *cp = dynamic_cast<UBGraphicsPolygonItem*>(copy); |
|
|
|
if (cp) |
|
|
|
if (cp) |
|
|
|
{ |
|
|
|
{ |
|
|
|
cp->setPolygon(polygon()); |
|
|
|
|
|
|
|
cp->mOriginalLine = this->mOriginalLine; |
|
|
|
cp->mOriginalLine = this->mOriginalLine; |
|
|
|
cp->mOriginalWidth = this->mOriginalWidth; |
|
|
|
cp->mOriginalWidth = this->mOriginalWidth; |
|
|
|
cp->mIsNominalLine = this->mIsNominalLine; |
|
|
|
cp->mIsNominalLine = this->mIsNominalLine; |
|
|
|