Commit 1e6e64c9 authored by Claudio Valerio's avatar Claudio Valerio

removed debug logs

parent c5fa4f26
......@@ -143,14 +143,10 @@ UBItem* UBGraphicsStrokesGroup::deepCopy() const
{
QTransform groupTransform = transform();
qDebug() << "Initial original transform " << groupTransform;
UBGraphicsStrokesGroup* copy = new UBGraphicsStrokesGroup();
copyItemParameters(copy);
copy->resetTransform();
qDebug() << "Initial copy transform " << copy->transform();
const_cast<UBGraphicsStrokesGroup*>(this)->resetTransform();
QList<QGraphicsItem*> chl = childItems();
......@@ -175,14 +171,6 @@ UBItem* UBGraphicsStrokesGroup::deepCopy() const
const_cast<UBGraphicsStrokesGroup*>(this)->setTransform(groupTransform);
copy->setTransform(groupTransform);
for(int i = 0 ; i < childItems().count(); i += 1){
Q_ASSERT(childItems().at(i)->transform().m11() == copy->childItems().at(i)->transform().m11());
Q_ASSERT(childItems().at(i)->transform().m12() == copy->childItems().at(i)->transform().m12());
Q_ASSERT(childItems().at(i)->transform().m21() == copy->childItems().at(i)->transform().m21());
Q_ASSERT(childItems().at(i)->transform().m22() == copy->childItems().at(i)->transform().m22());
Q_ASSERT(childItems().at(i)->transform().m31() == copy->childItems().at(i)->transform().m31());
Q_ASSERT(childItems().at(i)->transform().m32() == copy->childItems().at(i)->transform().m32());
}
return copy;
}
......
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