fixed hebrew character day bug on x64

This commit is contained in:
Liran BN 2014-10-21 18:44:23 +03:00
parent e869379b24
commit 1eec1a9d5d

View file

@ -113,18 +113,19 @@ int calendarCourse::getDay() const
*/ */
void calendarCourse::setDay(const QString &value) void calendarCourse::setDay(const QString &value)
{ {
QString dayTemp = value.mid(0,1); //recieving two characters respresting days QString dayTemp = value.mid(0,1); //recieving character's respresting the day
if (dayTemp.compare("\u05D0") == 0) //alef QChar letter = (QString::fromWCharArray(&dayTemp.toStdWString().at(0)).at(0));
if (letter.unicode() == 1488) //alef
day = 1; day = 1;
else if (dayTemp.compare("\u05D1") == 0) //bet else if (letter.unicode() == 1489) //bet
day = 2; day = 2;
else if (dayTemp.compare("\u05D2") == 0) //gimel else if (letter.unicode() == 1490) //gimel
day = 3; day = 3;
else if (dayTemp.compare("\u05D3") == 0) //dalet else if (letter.unicode() == 1491) //dalet
day = 4; day = 4;
else if (dayTemp.compare("\u05D4") == 0) //hey else if (letter.unicode() == 1492) //hey
day = 5; day = 5;
else if (dayTemp.compare("\u05D5") == 0) //vav else if (letter.unicode() == 1493) //vav
day = 6; day = 6;
else else
{ {