Index: trunk/BNC/src/RTCM3/ephEncoder.cpp
===================================================================
--- trunk/BNC/src/RTCM3/ephEncoder.cpp	(revision 6868)
+++ trunk/BNC/src/RTCM3/ephEncoder.cpp	(revision 6869)
@@ -246,5 +246,5 @@
   GALILEOADDBITS(12, eph._inav ? 1046 : 1045)
   GALILEOADDBITS(6, eph._prn.number())
-  GALILEOADDBITS(12, eph._TOC.gpsw())
+  GALILEOADDBITS(12, eph._TOC.galw())
   GALILEOADDBITS(10, eph._IODnav)
   GALILEOADDBITS(8, SISA)
Index: trunk/BNC/src/bnctime.h
===================================================================
--- trunk/BNC/src/bnctime.h	(revision 6868)
+++ trunk/BNC/src/bnctime.h	(revision 6869)
@@ -66,4 +66,8 @@
    */
   unsigned int gpsw()   const;
+  /** Get Galileo week.
+   * @return Galileo week number
+   */
+  inline unsigned int galw() const { return gpsw()-1024; };
   /** Get Seconds in GPS week.
    * @return time of GPS week in seconds
