Set icon id even if it's 0 as icon numbering starts at 0.

This commit is contained in:
Felix Geyer 2010-08-25 19:26:01 +02:00
parent 82cb315977
commit e7a9d57800

View File

@ -262,7 +262,7 @@ Group* Parser::parseGroup()
if (iconId < 0) {
raiseError();
}
else if (iconId != 0) {
else {
group->setIcon(iconId);
}
}
@ -403,7 +403,7 @@ Entry* Parser::parseEntry(bool history)
if (iconId < 0) {
raiseError();
}
else if (iconId != 0) {
else {
entry->setIcon(iconId);
}
}