[Kstars-devel] branches/kstars/summer/kstars/kstars

Prakash Mohan prak902000 at gmail.com
Wed Jul 22 05:01:10 CEST 2009


SVN commit 1000803 by prakash:

This will fix the crashes that occur when the GeoLocation is set manually using the parametric constructor without the DST rules.

CCMAIL: kstars-devel at kde.org


 M  +1 -1      geolocation.h  


--- branches/kstars/summer/kstars/kstars/geolocation.h #1000802:1000803
@@ -148,7 +148,7 @@
 
     /**@return time zone, including any DST correction.
     	*/
-    double TZ() const { return TimeZone + TZrule->deltaTZ(); }
+    double TZ() const { if( TZrule ) return TimeZone + TZrule->deltaTZ(); return TimeZone; }
 
     /**@return pointer to time zone rule object
     	*/


More information about the Kstars-devel mailing list