Skip to content

Commit

Permalink
Fix ref not working if they target sections with empty name
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Dec 30, 2024
1 parent f7fa42a commit 95c5506
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ void Tracker::rebuildSectionRefs()
_sectionRefs.clear();
for (const auto& pair: _sectionNameRefs) {
const auto& target = getLocationSection(pair.first);
if (target.getName().empty())
if (target.getParentID().empty() && target.getName().empty()) // TODO: Optional<LocationSection> instead
continue;
for (const auto& sourceName: pair.second) {
const auto& source = getLocationAndSection(sourceName);
Expand Down

0 comments on commit 95c5506

Please sign in to comment.