/**
* Add Control node
*/
-void SUPERVGUI_Main::addControlNode(SUPERV_CNode theStartNode, SUPERV_CNode theEndNode) {
+void SUPERVGUI_Main::addControlNode(SUPERV_CNode theStartNode, SUPERV_CNode theEndNode, bool Update) {
switch (myCurrentView) {
case GRAPH:
{
graph->addChild(aStartPrs, theStartNode->X(), theStartNode->Y());
graph->ResizeGraph(aEndPrs, theEndNode->X(), theEndNode->Y());
graph->addChild(aEndPrs, theEndNode->X(), theEndNode->Y());
- aStartPrs->updateLinksPrs();
- aEndPrs->updateLinksPrs();
+ if (Update) {
+ aStartPrs->updateLinksPrs();
+ aEndPrs->updateLinksPrs();
+ }
aStartPrs->sync();
aEndPrs->sync();
graph->repaintContents();
graph->addChild(aStartPrs, theStartNode->X(), theStartNode->Y());
graph->ResizeGraph(aEndPrs, theEndNode->X(), theEndNode->Y());
graph->addChild(aEndPrs, theEndNode->X(), theEndNode->Y());
- aStartPrs->updateLinksPrs();
- aEndPrs->updateLinksPrs();
+ if (Update) {
+ aStartPrs->updateLinksPrs();
+ aEndPrs->updateLinksPrs();
+ }
aStartPrs->sync();
aEndPrs->sync();
graph->repaintContents();