Skip to content

Commit

Permalink
Better record comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 19, 2023
1 parent 67d3ae2 commit 3162f93
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -7909,7 +7909,7 @@ sub Gedcom::Individual::relationship_up
unless(@myancestors) {
@myancestors = $self->ancestors();
}
if($me && ($self eq $me)) {
if($me && ($self->xref() eq $me->xref())) {
unless(@myancestors) {
@myancestors = $me->ancestors();
}
Expand Down Expand Up @@ -8568,15 +8568,15 @@ sub Gedcom::Individual::relationship_up
my $myfather = $self->father();
my $mymother = $self->mother();
if($myfather && (stepsabove($myfather, $person2, 0) > 0)) {
if($me && ($self eq $me)) {
if($me && ($self->xref() eq $me->xref())) {
$rc .= i18n(" on your father's side");
} else {
$rc .= ' on ' .
lcfirst($self->possessive()) .
" father's side";
}
} elsif($mymother && (stepsabove($mymother, $person2, 0) > 0)) {
if($me && ($self eq $me)) {
if($me && ($self->xref() eq $me->xref())) {
$rc .= i18n(" on your mother's side");
} else {
$rc .= ' on ' .
Expand All @@ -8601,7 +8601,7 @@ sub Gedcom::Individual::relationship_down
my $other = shift;
my @descendant;

if($me && ($self eq $me)) {
if($me && ($self->xref() eq $me->xref())) {
unless(@mydescendants) {
@mydescendants = $me->descendants();
}
Expand Down

0 comments on commit 3162f93

Please sign in to comment.