]> Git trees. - libqmvoc.git/commit
Fixed crash condition in ExtDate::fromString(QString, QDateFormat).
authorJason Harris <kstars@30doradus.org>
Fri, 15 Sep 2006 21:45:57 +0000 (21:45 +0000)
committerJason Harris <kstars@30doradus.org>
Fri, 15 Sep 2006 21:45:57 +0000 (21:45 +0000)
commit2988afae28e4c16fef2ebc8ec399e9111148031b
tree44d03da031bd9d6723436090cf935a29d48aa008
parent7de437ea8242cb2bd0aaec35a09efe3b885d24b7
Fixed crash condition in ExtDate::fromString(QString, QDateFormat).
When using the TextFormat QDateFormat, the code creates a QStringList
from the space-separated fields of the input string, but it then assumed
that the stringlist contains at least three members, which caused a
crash when this was not the case.  Now, it will return an invalid
ExtDate if the stringlist contains fewer than three members.

Thanks for the tip, Jasem.

CCMAIL: kde-edu@kde.org
CCMAIL: kstars-devel@kde.org

svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=584944
extdate/extdatetime.cpp