Fixing copy+paste error

for/release
dmatetelki 11 years ago
parent 3b4f58467f
commit 72833b8974

@ -129,6 +129,7 @@ void GraphWidget::keyPressEvent(QKeyEvent *e)
else else
insertNode(selectedNode, scene_p); insertNode(selectedNode, scene_p);
} }
break;
} }
default: default:
QGraphicsView::keyPressEvent(e); QGraphicsView::keyPressEvent(e);
@ -171,7 +172,7 @@ void GraphWidget::removeNode(Node* selectedNode)
void GraphWidget::insertEdge(Node* selectedNode, Node* nodeUnderMouse) void GraphWidget::insertEdge(Node* selectedNode, Node* nodeUnderMouse)
{ {
const float2 source_pos = float2FromQPointF(selectedNode->pos()); const float2 source_pos = float2FromQPointF(selectedNode->pos());
const float2 destination_pos = float2FromQPointF(selectedNode->pos()); const float2 destination_pos = float2FromQPointF(nodeUnderMouse->pos());
if (m_graph->connected(source_pos, destination_pos)) if (m_graph->connected(source_pos, destination_pos))
return; return;

Loading…
Cancel
Save