Refactor : Worksheet load xml logic

This commit is contained in:
Debao Zhang
2013-10-22 16:02:00 +08:00
parent f6bd08f6ed
commit 11ad7d5374
7 changed files with 112 additions and 54 deletions
+5
View File
@@ -61,6 +61,11 @@ int SharedStrings::addSharedString(const QString &string)
void SharedStrings::incRefByStringIndex(int idx)
{
if (idx <0 || idx >= m_stringList.size()) {
qDebug("SharedStrings: invlid index");
return;
}
addSharedString(m_stringList[idx]);
}