From 73ad127baeb54c62e0c7cc3369e4c52079aac2ce Mon Sep 17 00:00:00 2001
From: Saad Jbabdi <saad@fmrib.ox.ac.uk>
Date: Wed, 8 Aug 2007 11:54:20 +0000
Subject: [PATCH] bug fix

---
 ptx_nmasks.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ptx_nmasks.cc b/ptx_nmasks.cc
index f09aafc..4b661e0 100644
--- a/ptx_nmasks.cc
+++ b/ptx_nmasks.cc
@@ -49,7 +49,7 @@ void nmasks()
     for(unsigned int j=0;j<seeds.size();j++)
       if(j!=i)
 	tmpvol+=seeds[j];
-    if(i<=1)
+    if(i>=1)
       stline.pop_waymasks();
     stline.add_waymask(tmpvol);
 
-- 
GitLab