X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FText%2FTradition%2FCollation.pm;h=6558587471421e8b040bcc60a4a91a26419012ae;hb=e59564b451e9129e324b720caa1339bffb739187;hp=ac750ea3793a939acf36b7fe2a0dd85fb8c795f0;hpb=6352885679bcdd3fee8ac1d79f2a981a713db461;p=scpubgit%2Fstemmatology.git diff --git a/lib/Text/Tradition/Collation.pm b/lib/Text/Tradition/Collation.pm index ac750ea..6558587 100644 --- a/lib/Text/Tradition/Collation.pm +++ b/lib/Text/Tradition/Collation.pm @@ -550,7 +550,7 @@ sub as_svg { throw( "Need GraphViz installed to output SVG" ) unless File::Which::which( 'dot' ); my $want_subgraph = exists $opts->{'from'} || exists $opts->{'to'}; - $self->calculate_ranks() unless $self->_graphcalc_done; + $self->calculate_ranks() unless( $self->_graphcalc_done || $opts->{'nocalc'} ); if( !$self->has_cached_svg || $opts->{'recalc'} || $want_subgraph ) { my @cmd = qw/dot -Tsvg/; my( $svg, $err );