From: Michael Stapelberg Date: Fri, 7 Jan 2011 23:45:10 +0000 (+0100) Subject: ipc: adapt dump-asy.pl for the new orientation format X-Git-Tag: tree-pr2~122 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d5388147f122c86123840b8f20d89aebef59d393;p=i3%2Fi3 ipc: adapt dump-asy.pl for the new orientation format --- diff --git a/dump-asy.pl b/dump-asy.pl index dc2cbeab..a8eab04c 100755 --- a/dump-asy.pl +++ b/dump-asy.pl @@ -22,7 +22,7 @@ say $tmp "treeLevelStep = 2cm;"; sub dump_node { my ($n, $parent) = @_; - my $o = ($n->{orientation} == 0 ? "u" : ($n->{orientation} == 1 ? "h" : "v")); + my $o = ($n->{orientation} eq 'none' ? "u" : ($n->{orientation} eq 'horizontal' ? "h" : "v")); my $w = (defined($n->{window}) ? $n->{window} : "N"); my $na = $n->{name}; $na =~ s/#/\\#/g;