sets should be cloned into initial groupings, not used directly
tla [Mon, 27 Aug 2012 22:36:46 +0000 (00:36 +0200)]
lib/Text/Tradition/Analysis/Result.pm

index d311ad2..1ef1232 100644 (file)
@@ -289,7 +289,8 @@ sub BUILD {
        my @sets = $self->sets;
        foreach my $idx( 0 .. $#sets ) {
                unless( $self->grouping( $idx ) ) {
-                       $self->_set_grouping( $idx, $sets[$idx] );
+                       my $g = $sets[$idx]->clone();
+                       $self->_set_grouping( $idx, $g );
                }
        }
 }