Tool line. Block selecting the same point twice.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-02-09 14:45:31 +02:00
parent 4774a37d43
commit aee23cf700
2 changed files with 9 additions and 5 deletions

View File

@ -1,4 +1,5 @@
# Version 0.4.2
- Tool line. Block selecting the same point twice.
- [#443] Not valid dxf file. libdxf updated to version 3.12.2.0. Fixed drawing subpaths.
- Fixed combobox width in Dialog "Tool True Dart point".
- [#441] Broken reference incrementation for tool "True Dart point".

View File

@ -182,13 +182,16 @@ void DialogLine::ChosenObject(quint32 id, const SceneObject &type)
}
break;
case 1:
if (SetObject(id, ui->comboBoxSecondPoint, ""))
if (getCurrentObjectId(ui->comboBoxFirstPoint) != id)
{
if (flagError)
if (SetObject(id, ui->comboBoxSecondPoint, ""))
{
number = 0;
prepare = true;
DialogAccepted();
if (flagError)
{
number = 0;
prepare = true;
DialogAccepted();
}
}
}
break;