Fixed wrong selecting rule for the tool Line.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-10-04 13:52:04 +03:00
parent 723d68b245
commit 1eb93fd4f7

View File

@ -175,7 +175,7 @@ VToolLine * VToolLine::Create(const quint32 &_id, const quint32 &firstPoint, con
VToolLine *line = new VToolLine(doc, data, id, firstPoint, secondPoint, typeLine, lineColor, typeCreation); VToolLine *line = new VToolLine(doc, data, id, firstPoint, secondPoint, typeLine, lineColor, typeCreation);
scene->addItem(line); scene->addItem(line);
InitDrawToolConnections(scene, line); InitDrawToolConnections(scene, line);
connect(scene, &VMainGraphicsScene::EnablePointItemSelection, line, &VToolLine::AllowSelecting); connect(scene, &VMainGraphicsScene::EnableLineItemSelection, line, &VToolLine::AllowSelecting);
connect(scene, &VMainGraphicsScene::EnableLineItemHover, line, &VToolLine::AllowHover); connect(scene, &VMainGraphicsScene::EnableLineItemHover, line, &VToolLine::AllowHover);
doc->AddTool(id, line); doc->AddTool(id, line);