DbViewer: fixed scan disappearing after editing constraint

This commit is contained in:
matlabbe
2020-11-21 14:35:29 -05:00
parent ddecefbb9c
commit fb206b4f1e

View File

@@ -5334,8 +5334,8 @@ void DatabaseViewer::editConstraint()
linksRefined_.insert(std::make_pair(newLink.from(), newLink));
updated = true;
}
if(updated)
if(updated)
{
this->updateGraphView();
updateConstraintView();
}
@@ -5366,8 +5366,8 @@ void DatabaseViewer::editConstraint()
if(newLink.from() < newLink.to())
{
newLink = newLink.inverse();
}
}
linksAdded_.insert(std::make_pair(newLink.from(), newLink));
this->updateGraphView();
updateLoopClosuresSlider(from, to);
}