Fixed issue #817. Piece label is not rotatable by mouse.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-02-27 13:06:37 +02:00
parent 3bd958629f
commit f605777495

View File

@ -797,7 +797,7 @@ void VToolSeamAllowance::SaveRotationDetail(qreal dRot)
// Tranform angle to anticlockwise // Tranform angle to anticlockwise
QLineF line(0, 0, 100, 0); QLineF line(0, 0, 100, 0);
line.setAngle(-dRot); line.setAngle(-dRot);
newDet.GetPatternPieceData().SetRotationWay(QString().setNum(line.angle())); newDet.GetPatternPieceData().SetRotation(QString().setNum(line.angle()));
SavePieceOptions* rotateCommand = new SavePieceOptions(oldDet, newDet, doc, m_id); SavePieceOptions* rotateCommand = new SavePieceOptions(oldDet, newDet, doc, m_id);
rotateCommand->setText(tr("rotate pattern piece label")); rotateCommand->setText(tr("rotate pattern piece label"));