Skip to content

Commit

Permalink
Try harder to get event records
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 22, 2024
1 parent 8dc27ec commit efe0f36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -2593,8 +2593,12 @@ sub print_person
if(scalar(@events) == 2) {
my $event = $events[1];
if(!ref($event)) {
# red_warning({ person => $person, warning => "Event record is just description ($event), information has been lost" });
pop @events;
if($event = $person->tag_record('EVEN', 2)) {
$events[1] = $event;
} else {
red_warning({ person => $person, warning => "Event record is just description ($event), information has been lost" });
pop @events;
}
}
}

Expand Down

0 comments on commit efe0f36

Please sign in to comment.