Index: /trunk/BNS/bnseph.h
===================================================================
--- /trunk/BNS/bnseph.h	(revision 916)
+++ /trunk/BNS/bnseph.h	(revision 917)
@@ -36,5 +36,5 @@
   virtual void position(int GPSweek, double GPSweeks, ColumnVector& xc,
                         ColumnVector& vv) const;
-  virtual int  IOD() const {return int(_GPSweeks);}
+  virtual int  IOD() const {return int(fmod(_GPSweeks,86400.0)) / 600;}
  private:
   static ColumnVector glo_deriv(double /* tt */, const ColumnVector& xv);
Index: /trunk/BNS/bnswindow.cpp
===================================================================
--- /trunk/BNS/bnswindow.cpp	(revision 916)
+++ /trunk/BNS/bnswindow.cpp	(revision 917)
@@ -278,6 +278,4 @@
 
   QMainWindow::closeEvent(event);
-
-  delete this;
 }
 
