Fixed Bisector tool bug. The tool created internal variable for wrong segment.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-07-01 15:48:48 +03:00
parent d41a777f73
commit c5512294da
2 changed files with 3 additions and 2 deletions

View File

@ -11,6 +11,7 @@
- [#494] Printing is not working.
- [#516] Valentina crashes when use "Point intersect line and axis" instrument.
- [#483] File lost.
- Fixed Bisector tool bug. The tool created internal variable for wrong segment.
# Version 0.4.4 April 12, 2016
- Updated measurement templates with all measurements. Added new template Aldrich/Women measurements.

View File

@ -183,12 +183,12 @@ VToolBisector* VToolBisector::Create(const quint32 _id, QString &formula, const
if (typeCreation == Source::FromGui)
{
id = data->AddGObject(new VPointF(fPoint, pointName, mx, my));
data->AddLine(firstPointId, id);
data->AddLine(secondPointId, id);
}
else
{
data->UpdateGObject(id, new VPointF(fPoint, pointName, mx, my));
data->AddLine(firstPointId, id);
data->AddLine(secondPointId, id);
if (parse != Document::FullParse)
{
doc->UpdateToolData(id, data);