Restore review-flagged comment content cut too aggressively in comment reduction
This commit is contained in:
@@ -283,6 +283,9 @@ std::set<std::string> ViewModeModel::visibleTracks(const FolderTree& tree,
|
||||
std::map<std::string, std::string> parentOf;
|
||||
for (const auto& node : tree.nodes) parentOf[node.guid] = node.parentGuid;
|
||||
|
||||
// Seed from the full pass-1 set (not just leaves) so a parent already visible by
|
||||
// its own membership still propagates visibility up its remaining ancestors; a
|
||||
// snapshot copy so mid-loop insertions into `visible` are never re-walked.
|
||||
const std::vector<std::string> seeds(visible.begin(), visible.end());
|
||||
for (const auto& node : seeds) {
|
||||
auto it = parentOf.find(node);
|
||||
|
||||
Reference in New Issue
Block a user