Fix issue #65 :Don't give warning when empty format exists in style table
This commit is contained in:
@@ -1953,8 +1953,9 @@ void WorksheetPrivate::loadXmlSheetData(QXmlStreamReader &reader)
|
|||||||
if (attributes.hasAttribute(QLatin1String("s"))) { //"s" == style index
|
if (attributes.hasAttribute(QLatin1String("s"))) { //"s" == style index
|
||||||
int idx = attributes.value(QLatin1String("s")).toString().toInt();
|
int idx = attributes.value(QLatin1String("s")).toString().toInt();
|
||||||
format = workbook->styles()->xfFormat(idx);
|
format = workbook->styles()->xfFormat(idx);
|
||||||
if (!format.isValid())
|
////Empty format exists in styles xf table of real .xlsx files, see issue #65.
|
||||||
qDebug()<<QStringLiteral("<c s=\"%1\">Invalid style index: ").arg(idx)<<idx;
|
//if (!format.isValid())
|
||||||
|
// qDebug()<<QStringLiteral("<c s=\"%1\">Invalid style index: ").arg(idx)<<idx;
|
||||||
}
|
}
|
||||||
|
|
||||||
Cell::CellType cellType = Cell::NumberType;
|
Cell::CellType cellType = Cell::NumberType;
|
||||||
|
|||||||
Reference in New Issue
Block a user