Fix Styles::readNumFmts() bug

This commit is contained in:
Debao Zhang
2013-10-25 16:32:43 +08:00
parent 8faebaaa91
commit 84ca047e7f
3 changed files with 14 additions and 6 deletions
+3
View File
@@ -547,6 +547,9 @@ bool Styles::readNumFmts(XmlStreamReader &reader)
fmt->formatString = attributes.value(QLatin1String("formatCode")).toString();
m_customNumFmts.append(fmt);
m_customNumFmtsHash.insert(fmt->formatString, fmt);
while (!(reader.name() == QLatin1String("numFmt") && reader.tokenType() == QXmlStreamReader::EndElement))
reader.readNextStartElement();
}
return true;
}