Also remove the old point when simulating insertion.

This commit is contained in:
Nico Kruithof 2013-01-21 15:40:50 +01:00
parent a76b314cd4
commit 19b1c229ae
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ TriangulationMovingPoint<T>::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
if (!movePointToInsert) return; if (!movePointToInsert) return;
if (insertedPoint && (vh != Vertex_handle())) { if (insertedPoint && (vh != Vertex_handle())) {
// TODO(NGHK): Re-add dt->remove(vh); dt->remove(vh);
vh = Vertex_handle(); vh = Vertex_handle();
} }
@ -108,7 +108,7 @@ TriangulationMovingPoint<T>::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
} }
if (insertedPoint && (vh != Vertex_handle())) { if (insertedPoint && (vh != Vertex_handle())) {
// TODO(NGHK): Re-add dt->remove(vh); dt->remove(vh);
vh = Vertex_handle(); vh = Vertex_handle();
} }