fix false positive in link_types_changed
loadindex does not bother populating oldtypedlinks if there is no link type. However, the code in link_types_changed assumed that if oldtypedlinks is not defined, and typedlinks is, they must differ.master
parent
1336a3270b
commit
1a09cddd39
|
@ -526,7 +526,7 @@ sub link_types_changed ($$) {
|
|||
my $old = shift;
|
||||
|
||||
return 0 if !defined $new && !defined $old;
|
||||
return 1 if !defined $new || !defined $old;
|
||||
return 1 if (!defined $new && %$old) || (!defined $old && %$new);
|
||||
|
||||
while (my ($type, $links) = each %$new) {
|
||||
foreach my $link (keys %$links) {
|
||||
|
|
Loading…
Reference in New Issue