]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/datetime.cpp
Added wxDC::GetPartialTextExtents
[wxWidgets.git] / src / common / datetime.cpp
index 7ea7a574e3aaa6350c087e63631c76daf56e2670..9c14cc43db07e0f51dca7e3d9af7db60f48f9577 100644 (file)
@@ -1326,6 +1326,7 @@ wxDateTime& wxDateTime::ResetTime()
 wxDateTime& wxDateTime::SetFromDOS(unsigned long ddt)
 {
     struct tm tm;
 wxDateTime& wxDateTime::SetFromDOS(unsigned long ddt)
 {
     struct tm tm;
+    InitTm(tm);
 
     long year = ddt & 0xFE000000;
     year >>= 25;
 
     long year = ddt & 0xFE000000;
     year >>= 25;