1
0
Fork 0

SortIndex: move the unlinking of the sort attributes after unlinking the sort itself

This commit is contained in:
Willi Goesgens 2014-09-01 18:30:49 +02:00
parent c1d0f8bccc
commit 021f3371f2
1 changed files with 2 additions and 2 deletions

View File

@ -787,13 +787,13 @@ public:
/// @brief removes the sortNode and its referenced Calculationnodes from the plan.
////////////////////////////////////////////////////////////////////////////////
void removeSortNodeFromPlan (ExecutionPlan *newPlan) {
newPlan->unlinkNode(newPlan->getNodeById(sortNodeID));
for (auto idToRemove = _sortNodeData.begin();
idToRemove != _sortNodeData.end();
++idToRemove) {
newPlan->unlinkNode(newPlan->getNodeById((*idToRemove)->calculationNodeID));
}
newPlan->unlinkNode(newPlan->getNodeById(sortNodeID));
}
};