Commit fcae8c57 authored by Claudio Valerio's avatar Claudio Valerio

fixed eraser issue on strokes

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