Refactoring.

This commit is contained in:
Roman Telezhynskyi 2021-01-23 15:25:01 +02:00
parent 5eb8784cd4
commit f81babbf7b
2 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);