Skip to content

Commit

Permalink
avoid an undef comparison warning
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnlaffan committed Feb 5, 2024
1 parent 664d621 commit 41359af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Biodiverse/GUI/Tabs/Spatial.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ sub on_selected_phylogeny_changed {
my $dendro_tree = $self->{dendrogram}->get_cluster;

# don't trigger needless redraws
return if refaddr ($phylogeny) == refaddr ($dendro_tree);
return if ($dendro_tree && $phylogeny) && refaddr ($phylogeny) == refaddr ($dendro_tree);

if ($self->{dendrogram}) {
$self->{dendrogram}->clear;
Expand Down

0 comments on commit 41359af

Please sign in to comment.