This commit is contained in:
Bart Louwers
2024-08-11 15:04:14 +02:00
committed by GitHub
parent 60c1d351cf
commit 544f918c17
34 changed files with 97 additions and 89 deletions

View File

@@ -62,7 +62,7 @@ LayerDifference diffLayers(const Immutable<std::vector<ImmutableLayer>>& a,
}
bool hasLayoutDifference(const LayerDifference& layerDiff, const std::string& layerID) {
if (layerDiff.added.count(layerID)) return true;
if (layerDiff.added.contains(layerID)) return true;
const auto it = layerDiff.changed.find(layerID);
if (it == layerDiff.changed.end()) return false;
return it->second.before->hasLayoutDifference(*it->second.after);