Don't waite dialog stage, block bad data on early stage.

--HG--
branch : develop
This commit is contained in:
dismine 2014-11-08 17:49:59 +02:00
parent d6a55c9a40
commit aa0b73d930

View File

@ -218,14 +218,25 @@ void DialogLineIntersectAxis::ChosenObject(quint32 id, const SceneObject &type)
}
break;
case (1):
if (getCurrentObjectId(ui->comboBoxFirstLinePoint) != id)
{
if (SetObject(id, ui->comboBoxSecondLinePoint, tr("Select axis point")))
{
number++;
line->setPoint2Id(id);
line->RefreshGeometry();
}
}
break;
case (2):
{
QSet<quint32> set;
set.insert(getCurrentObjectId(ui->comboBoxFirstLinePoint));
set.insert(getCurrentObjectId(ui->comboBoxSecondLinePoint));
set.insert(id);
if (set.size() == 3)
{
if (SetObject(id, ui->comboBoxAxisPoint, ""))
{
basePointId = id;
@ -233,6 +244,8 @@ void DialogLineIntersectAxis::ChosenObject(quint32 id, const SceneObject &type)
line->RefreshGeometry();
prepare = true;
}
}
}
break;
default:
break;