Index: trunk/BNC/combination/bnccomb.cpp
===================================================================
--- trunk/BNC/combination/bnccomb.cpp	(revision 3328)
+++ trunk/BNC/combination/bnccomb.cpp	(revision 3329)
@@ -180,4 +180,11 @@
   // -------------------
   _firstReg = false;
+
+  // Maximal Residuum
+  // ----------------
+  _MAXRES = settings.value("cmbMaxres").toDouble();
+  if (_MAXRES <= 0.0) {
+    _MAXRES = 999.0;
+  }
 }
 
@@ -493,6 +500,4 @@
     }
 
-    const double MAXRES = 999.10;  // TODO: make it an option
-
     ColumnVector dx;
     SymmetricMatrix QQ_sav = _QQ;
@@ -508,5 +513,5 @@
       out << "Maximum Residuum " << maxRes << " (index " << maxResIndex << ")\n";
 
-      if (maxRes > MAXRES) {
+      if (maxRes > _MAXRES) {
         out << "Outlier Detected" << endl;
         _QQ = QQ_sav;
Index: trunk/BNC/combination/bnccomb.h
===================================================================
--- trunk/BNC/combination/bnccomb.h	(revision 3328)
+++ trunk/BNC/combination/bnccomb.h	(revision 3329)
@@ -87,4 +87,5 @@
   QString               _masterAC;
   bncAntex*             _antex;
+  double                _MAXRES;
 };
 
