Do not warn a user about wrong configuration if top and bottom pin points are

not selected.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-03-10 16:27:56 +02:00
parent af3735ea23
commit 4bec2bb815

View File

@ -1288,7 +1288,8 @@ void DialogSeamAllowance::GrainlinePinPointChanged()
QColor color = okColor;
const quint32 topPinId = getCurrentObjectId(ui->comboBoxGrainlineTopPin);
const quint32 bottomPinId = getCurrentObjectId(ui->comboBoxGrainlineBottomPin);
if (topPinId != NULL_ID && bottomPinId != NULL_ID && topPinId != bottomPinId)
if ((topPinId == NULL_ID && bottomPinId == NULL_ID) ||
(topPinId != NULL_ID && bottomPinId != NULL_ID && topPinId != bottomPinId))
{
flagGPin = true;
color = okColor;