fixed formatting in GeoLocation class (C++)
authorVictor Kirhenshtein <victor@netxms.org>
Tue, 14 Jun 2016 19:30:49 +0000 (22:30 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Tue, 14 Jun 2016 19:30:49 +0000 (22:30 +0300)
src/java/client/netxms-base/src/main/java/org/netxms/base/GeoLocation.java
src/libnetxms/geolocation.cpp

index 420a660..cfd1a52 100644 (file)
@@ -373,6 +373,9 @@ public class GeoLocation
       return endTimestamp;
    }
 
+   /**
+    * @param endTimestamp
+    */
    public void setEndTimestamp(Date endTimestamp)
    {
       this.endTimestamp = endTimestamp;
index d532585..2e831c0 100644 (file)
@@ -228,7 +228,7 @@ void GeoLocation::posToString(bool isLat, double pos)
        buffer++;
        *buffer++ = _T(' ');
 
-       _sntprintf(buffer, 18, _T("%02d") DEGREE_SIGN_STR _T(" %02d' %02.3f\""), getIntegerDegree(pos), getIntegerMinutes(pos), getDecimalSeconds(pos));
+       _sntprintf(buffer, 18, _T("%02d") DEGREE_SIGN_STR _T(" %02d' %06.3f\""), getIntegerDegree(pos), getIntegerMinutes(pos), getDecimalSeconds(pos));
 }
 
 /**