Author: bugman Date: Wed Oct 1 18:36:54 2008 New Revision: 7488 URL: http://svn.gna.org/viewcvs/relax?rev=7488&view=rev Log: Bug fix for the add_struct() method. The input structure container was being overwritten. Modified: branches/pipe_refs/generic_fns/structure/internal.py Modified: branches/pipe_refs/generic_fns/structure/internal.py URL: http://svn.gna.org/viewcvs/relax/branches/pipe_refs/generic_fns/structure/internal.py?rev=7488&r1=7487&r2=7488&view=diff ============================================================================== --- branches/pipe_refs/generic_fns/structure/internal.py (original) +++ branches/pipe_refs/generic_fns/structure/internal.py Wed Oct 1 18:36:54 2008 @@ -98,7 +98,8 @@ self.path.append(path) # Initialise the structural object if not provided. - str = Structure_container() + if str == None: + str = Structure_container() # Add the structural data. if struct_index != None: