From 93f98f1062c8a2d3862d770d4d71fddc9145dffc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9=20Offringa?= <offringa@astron.nl>
Date: Thu, 3 Feb 2011 15:40:32 +0000
Subject: [PATCH] Bug 1491: fixing possible issue in mask conversion

---
 CEP/DP3/AOFlagger/include/AOFlagger/msio/timefrequencydata.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CEP/DP3/AOFlagger/include/AOFlagger/msio/timefrequencydata.h b/CEP/DP3/AOFlagger/include/AOFlagger/msio/timefrequencydata.h
index d252c6137ab..10c120dcd7f 100644
--- a/CEP/DP3/AOFlagger/include/AOFlagger/msio/timefrequencydata.h
+++ b/CEP/DP3/AOFlagger/include/AOFlagger/msio/timefrequencydata.h
@@ -330,6 +330,8 @@ class TimeFrequencyData
 				if(polarisation == XXPolarisation || polarisation == XYPolarisation || polarisation == YXPolarisation || polarisation == YYPolarisation || polarisation == StokesIPolarisation || polarisation == SinglePolarisation)
 				return _flagging[0];
 			}
+			else if(_flagCoverage==GlobalFlagCoverage)
+				return _flagging[0];
 			throw BadUsageException("Mask requested that was not available in the given time frequency data");
 		}
 
-- 
GitLab