Commit 7cc8f51e authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Bugfix: libptopgen_new now works when protogeni_exclude is non-numeric.

parent 85049860
...@@ -1028,7 +1028,7 @@ sub calculateWillPrint($;$) ...@@ -1028,7 +1028,7 @@ sub calculateWillPrint($;$)
# In geni mode, disallow nodes tagged protogeni_exclude from being printed. # In geni mode, disallow nodes tagged protogeni_exclude from being printed.
my $geniExclude = 0; my $geniExclude = 0;
$node->NodeAttribute("protogeni_exclude", \$geniExclude); $node->NodeAttribute("protogeni_exclude", \$geniExclude);
my $geniok = (! defined($geniExclude) || $geniExclude == 0); my $geniok = (! defined($geniExclude) || ! $geniExclude);
my $result = my $result =
(! $available_only || $self->available()) (! $available_only || $self->available())
&& (! $genimode || $geniok) && (! $genimode || $geniok)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment