Fix numFmt: don't assume that all custom numFmtId starts from 164

This commit is contained in:
Debao Zhang
2013-11-01 15:47:55 +08:00
parent ee9f43e21d
commit 8feb738e9f
3 changed files with 43 additions and 30 deletions
+3 -1
View File
@@ -30,6 +30,7 @@
#include <QSharedPointer>
#include <QHash>
#include <QList>
#include <QMap>
#include <QStringList>
class QIODevice;
@@ -82,8 +83,9 @@ private:
bool readCellXfs(XmlStreamReader &reader);
QHash<QString, int> m_builtinNumFmtsHash;
QList<QSharedPointer<NumberData> > m_customNumFmts;
QMap<int, QSharedPointer<NumberData> > m_customNumFmtIdMap;
QHash<QString, QSharedPointer<NumberData> > m_customNumFmtsHash;
int m_nextCustomNumFmtId;
QList<QSharedPointer<FontData> > m_fontsList; //Keep a copy of unique fonts
QList<QSharedPointer<FillData> > m_fillsList; //Keep a copy of unique fills
QList<QSharedPointer<BorderData> > m_bordersList; //Keep a copy of unique borders