Ensure touched features, which override mustExecute(), are recomputed.

This commit is contained in:
Stefan Tröger
2017-08-10 19:48:13 +02:00
committed by wmayer
parent c14e508c74
commit a03000cc68

View File

@@ -2186,8 +2186,8 @@ int Document::recompute()
}
for (auto objIt = topoSortedObjects.rbegin(); objIt != topoSortedObjects.rend(); ++objIt){
// ask the object if it should be recomputed
if ((*objIt)->mustExecute() == 1){
// ask the object if it should be recomputed
if ((*objIt)->isTouched() || (*objIt)->mustExecute() == 1){
objectCount++;
if (_recomputeFeature(*objIt)) {
// if something happen break execution of recompute