From: Tara L Andrews Date: Tue, 17 Apr 2012 11:20:58 +0000 (+0200) Subject: add nocalc option for debug svg output X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5f08271655e5441574dcb9aae795e239ebf229e3;p=scpubgit%2Fstemmatology.git add nocalc option for debug svg output --- diff --git a/lib/Text/Tradition/Collation.pm b/lib/Text/Tradition/Collation.pm index 6357a6f..786e862 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 );