From b370baeb7cb012f60252a8a4323346b8141a708d Mon Sep 17 00:00:00 2001 From: "cmzmasek@gmail.com" Date: Mon, 27 Feb 2012 22:59:58 +0000 Subject: [PATCH] silly script --- .../org/forester/phylogeny/PhylogenyMethods.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java index c5d676d..4a2115e 100644 --- a/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java +++ b/forester/java/src/org/forester/phylogeny/PhylogenyMethods.java @@ -1586,16 +1586,16 @@ public class PhylogenyMethods { n.setChild2( temp ); } else if ( order_ext_alphabetically ) { - // boolean all_ext = true; - // for( PhylogenyNode i : n.getDescendants() ) { - // if ( !i.isExternal() ) { - // all_ext = false; - // break; - // } - // } - // if ( all_ext ) { - PhylogenyMethods.sortNodeDescendents( n, pri ); - // } + boolean all_ext = true; + for( final PhylogenyNode i : n.getDescendants() ) { + if ( !i.isExternal() ) { + all_ext = false; + break; + } + } + if ( all_ext ) { + PhylogenyMethods.sortNodeDescendents( n, pri ); + } } for( int i = 0; i < n.getNumberOfDescendants(); ++i ) { orderAppearance( n.getChildNode( i ), order, order_ext_alphabetically, pri ); -- 1.7.10.2