Index: trunk/BNC/bncfigureppp.cpp
===================================================================
--- trunk/BNC/bncfigureppp.cpp	(revision 2203)
+++ trunk/BNC/bncfigureppp.cpp	(revision 2204)
@@ -100,7 +100,11 @@
   }
 
-  if (_pos.size() > MAXNUMPOS) {
-    delete _pos[0];
-    _pos.pop_front();
+  QMutableVectorIterator<pppPos*> it(_pos);
+  while (it.hasNext()) {
+    pppPos* pp = it.next();
+    if ( (time - pp->time) > _tRange ) {
+      delete pp;
+      it.remove();
+    }
   }
 
@@ -139,5 +143,4 @@
   // -----------------------------------------------------
   if (_pos.size() > 1) {
-    _tRange = MAXNUMPOS;
     _tMin   = _pos[0]->time.gpssec();
 
@@ -169,5 +172,5 @@
     }
 
-    if (_neuMax > 0.0 && _tRange > 0.0) {
+    if (_neuMax > 0.0) {
 
       if (_neuMax < 0.15) {
Index: trunk/BNC/bncfigureppp.h
===================================================================
--- trunk/BNC/bncfigureppp.h	(revision 2203)
+++ trunk/BNC/bncfigureppp.h	(revision 2204)
@@ -43,5 +43,5 @@
 
  private:
-  const static int MAXNUMPOS = 300;
+  const static double _tRange = 300;
 
   class pppPos {
@@ -57,5 +57,4 @@
   bncTime          _startTime;
   double           _neuMax;
-  double           _tRange;
   double           _tMin;
   int              _width;
