Index: tests/regression/Filling/3/post/empty.xyz
===================================================================
--- tests/regression/Filling/3/post/empty.xyz	(revision 66fd499538327fa9d63d45ec481787c8650b9509)
+++ tests/regression/Filling/3/post/empty.xyz	(revision 66fd499538327fa9d63d45ec481787c8650b9509)
@@ -0,0 +1,2 @@
+0
+	Created by molecuilder on Thu Dec 30 22:00:21 2010
Index: tests/regression/Filling/3/post/tensid.data
===================================================================
--- tests/regression/Filling/3/post/tensid.data	(revision cb9de4fed6a381fa6220088cb1a1b919167e8e82)
+++ tests/regression/Filling/3/post/tensid.data	(revision 66fd499538327fa9d63d45ec481787c8650b9509)
@@ -57,7 +57,7 @@
 56	H12	SLES	1	4.755	0.669	7.942	H	54	0	0	0	9.000000e-02	
 57	H12	SLES	1	4.381	1.794	9.275	H	54	0	0	0	9.000000e-02	
-58	-	-	0	27	27	27.5043	O	59	60	0	0	0	
-59	-	-	0	27.7586	27	28.0086	H	58	0	0	0	0	
-60	-	-	0	27.7586	27	27	H	58	0	0	0	0	
+58	-	-	0	0	0	0.504284	O	59	60	0	0	0	
+59	-	-	0	0.758602	0	1.00857	H	58	0	0	0	0	
+60	-	-	0	0.758602	0	0	H	58	0	0	0	0	
 61	-	-	0	0	0	3.50428	O	62	63	0	0	0	
 62	-	-	0	0.758602	0	4.00857	H	61	0	0	0	0	
@@ -2964,2 +2964,5 @@
 2963	-	-	0	27.7586	27	25.0086	H	2962	0	0	0	0	
 2964	-	-	0	27.7586	27	24	H	2962	0	0	0	0	
+2965	-	-	0	27	27	27.5043	O	2966	2967	0	0	0	
+2966	-	-	0	27.7586	27	28.0086	H	2965	0	0	0	0	
+2967	-	-	0	27.7586	27	27	H	2965	0	0	0	0	
Index: tests/regression/Filling/3/post/test.xyz
===================================================================
--- tests/regression/Filling/3/post/test.xyz	(revision cb9de4fed6a381fa6220088cb1a1b919167e8e82)
+++ tests/regression/Filling/3/post/test.xyz	(revision 66fd499538327fa9d63d45ec481787c8650b9509)
@@ -1,4 +1,4 @@
-1004
-	Created by molecuilder on Sat Aug 28 07:59:41 2010
+1028
+	Created by molecuilder on Thu Dec 30 21:46:40 2010
 H	9.78209	2.64589	2.64589
 H	9.78209	2.64589	4.42589
@@ -12,7 +12,10 @@
 C	8.53279	4.15859	3.53589
 C	7.28359	3.27519	3.53589
-O	17.1429	17.1429	17.6471
-H	17.9015	17.1429	18.1514
-H	17.9015	17.1429	17.1429
+O	0	0	0.504284
+H	0.758602	0	1.00857
+H	0.758602	0	0
+O	0	0	3.36143
+H	0.758602	0	3.86571
+H	0.758602	0	2.85714
 O	0	0	6.21857
 H	0.758602	0	6.72285
@@ -156,4 +159,7 @@
 H	0.758602	17.1429	18.1514
 H	0.758602	17.1429	17.1429
+O	2.85714	0	0.504284
+H	3.61574	0	1.00857
+H	3.61574	0	0
 O	2.85714	0	3.36143
 H	3.61574	0	3.86571
@@ -324,4 +330,7 @@
 H	6.47289	2.85714	1.00857
 H	6.47289	2.85714	0
+O	5.71429	2.85714	6.21857
+H	6.47289	2.85714	6.72285
+H	6.47289	2.85714	5.71429
 O	5.71429	2.85714	9.07571
 H	6.47289	2.85714	9.58
@@ -339,4 +348,7 @@
 H	6.47289	5.71429	1.00857
 H	6.47289	5.71429	0
+O	5.71429	5.71429	3.36143
+H	6.47289	5.71429	3.86571
+H	6.47289	5.71429	2.85714
 O	5.71429	5.71429	6.21857
 H	6.47289	5.71429	6.72285
@@ -462,4 +474,7 @@
 H	9.33003	2.85714	1.00857
 H	9.33003	2.85714	0
+O	8.57143	2.85714	6.21857
+H	9.33003	2.85714	6.72285
+H	9.33003	2.85714	5.71429
 O	8.57143	2.85714	9.07571
 H	9.33003	2.85714	9.58
@@ -477,4 +492,7 @@
 H	9.33003	5.71429	1.00857
 H	9.33003	5.71429	0
+O	8.57143	5.71429	6.21857
+H	9.33003	5.71429	6.72285
+H	9.33003	5.71429	5.71429
 O	8.57143	5.71429	9.07571
 H	9.33003	5.71429	9.58
@@ -615,4 +633,7 @@
 H	12.1872	5.71429	1.00857
 H	12.1872	5.71429	0
+O	11.4286	5.71429	3.36143
+H	12.1872	5.71429	3.86571
+H	12.1872	5.71429	2.85714
 O	11.4286	5.71429	6.21857
 H	12.1872	5.71429	6.72285
@@ -1005,2 +1026,5 @@
 H	17.9015	17.1429	15.2943
 H	17.9015	17.1429	14.2857
+O	17.1429	17.1429	17.6471
+H	17.9015	17.1429	18.1514
+H	17.9015	17.1429	17.1429
Index: tests/regression/testsuite-filling.at
===================================================================
--- tests/regression/testsuite-filling.at	(revision cb9de4fed6a381fa6220088cb1a1b919167e8e82)
+++ tests/regression/testsuite-filling.at	(revision 66fd499538327fa9d63d45ec481787c8650b9509)
@@ -32,6 +32,19 @@
 H       0.758602 0.     -0.504284 
 ]])
-AT_CHECK([../../molecuilder -i test.conf  -o xyz --fill-void water.xyz --distances "3.1, 3.1, 3.1"  --lengths "2.1, 0., 0." --DoRotate 0], 0, [stdout], [stderr])
+AT_CHECK([../../molecuilder -i test.conf  -o xyz --fill-void water.xyz --distances "3.1, 3.1, 3.1"  --lengths "1.5, 0., 0." --DoRotate 0], 0, [stdout], [stderr])
 AT_CHECK([file=test.xyz; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Filling/3/post/$file], 0, [ignore], [ignore])
+AT_CLEANUP
+
+AT_SETUP([Filling - filling void space in box with Undo])
+AT_KEYWORDS([filling])
+AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Filling/3/pre/test.conf .], 0)
+AT_DATA([water.xyz], [[3
+ # test configuration, created by molecuilder test suite
+O       0.      0.      0.
+H       0.758602 0.     0.504284 
+H       0.758602 0.     -0.504284 
+]])
+AT_CHECK([../../molecuilder -i empty.conf  -o xyz --fill-void water.xyz --distances "3.1, 3.1, 3.1"  --lengths "1.5, 0., 0." --DoRotate 0 --undo], 0, [stdout], [stderr])
+AT_CHECK([file=empty.xyz; diff -I '.*reated by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Filling/3/post/$file], 0, [ignore], [ignore])
 AT_CLEANUP
 
