Refactoring.
This commit is contained in:
parent
5eb8784cd4
commit
f81babbf7b
|
@ -664,14 +664,14 @@ void VToolSeamAllowance::UpdateGrainline()
|
|||
const VGrainlineData& geom = detail.GetGrainlineGeometry();
|
||||
const QVector<quint32> &pins = detail.GetPins();
|
||||
|
||||
if (geom.IsVisible() == true)
|
||||
if (geom.IsVisible())
|
||||
{
|
||||
QPointF pos;
|
||||
qreal dRotation = 0;
|
||||
qreal dLength = 0;
|
||||
|
||||
const VGrainlineItem::MoveTypes type = FindGrainlineGeometry(geom, pins, dLength, dRotation, pos);
|
||||
if (type & VGrainlineItem::Error)
|
||||
if ((type & VGrainlineItem::Error) != 0U)
|
||||
{
|
||||
m_grainLine->hide();
|
||||
return;
|
||||
|
|
|
@ -189,7 +189,7 @@ void VGrainlineItem::UpdateGeometry(const QPointF& ptPos, qreal dRotation, qreal
|
|||
qreal dX;
|
||||
qreal dY;
|
||||
QPointF pt = ptPos;
|
||||
if (IsContained(pt, m_dRotation, dX, dY) == false)
|
||||
if (not IsContained(pt, m_dRotation, dX, dY))
|
||||
{
|
||||
pt.setX(pt.x() + dX);
|
||||
pt.setY(pt.y() + dY);
|
||||
|
|
Loading…
Reference in New Issue
Block a user