summaryrefslogtreecommitdiffstats
path: root/qtools/qdatetime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qtools/qdatetime.cpp')
-rw-r--r--qtools/qdatetime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtools/qdatetime.cpp b/qtools/qdatetime.cpp
index 521a022..cecb855 100644
--- a/qtools/qdatetime.cpp
+++ b/qtools/qdatetime.cpp
@@ -355,7 +355,7 @@ bool QDate::setYMD( int y, int m, int d )
}
jd = greg2jul( y, m, d );
#if defined(DEBUG)
- ASSERT( year() == y && month() == m && day() == d );
+ ASSERT( year() == (y > 99 ? y : 1900+y) && month() == m && day() == d );
#endif
return TRUE;
}