Skip to content

Commit

Permalink
Make sure we set the branch colour properly
Browse files Browse the repository at this point in the history
This was missed in the updates to issue #630
  • Loading branch information
shawnlaffan committed Mar 3, 2017
1 parent 369054d commit 5596967
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions lib/Biodiverse/GUI/Dendrogram.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1160,10 +1160,7 @@ sub set_node_colour {
? $colour_ref->to_string
: DEFAULT_LINE_COLOUR_RGB;

$node_ref->set_bootstrap_value(
key => "color",
value => $colour_string
);
$node_ref->set_bootstrap_colour_aa ($colour_string);
}

# boolean: has a colour been set for a given node
Expand Down
2 changes: 1 addition & 1 deletion lib/Biodiverse/TreeNode/BootstrapBlock.pm
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ sub reformat_colour_spec {
my $colour = $args{colour};

# only worry about #RRRRGGGGBBBB
return $colour if not $colour =~ /^#[a-fA-F\d]{12}$/;
return $colour if not $colour =~ /^#[a-fA-F\d]{12}$/;

# the way colours are selected in the dendrogram only allows for 2
# hex digits for each color. Unless this is change, we don't lose
Expand Down

0 comments on commit 5596967

Please sign in to comment.