Skip to content

Commit

Permalink
Revert fix which broke some relationship calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 19, 2024
1 parent 574596d commit 87f4ea4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -10054,10 +10054,8 @@ sub Gedcom::Individual::relationship_up
my $other = shift;
my @ancestors;

unless(@myancestors) {
@myancestors = $self->ancestors();
}
if($me && ($self eq $me)) {
if($me && ($self->xref() eq $me->xref())) {
# Cache myancestors since we call this a lot of times
unless(@myancestors) {
@myancestors = $me->ancestors();
}
Expand Down Expand Up @@ -10755,6 +10753,7 @@ sub Gedcom::Individual::relationship_down
my @descendant;

if($me && ($self->xref() eq $me->xref())) {
# Cache mydescendants since we call this a lot of times
unless(@mydescendants) {
# @mydescendants = $me->descendants();
@mydescendants = descendants($me);
Expand Down

0 comments on commit 87f4ea4

Please sign in to comment.