Browse Source

Swap the position of applyFill and applyBorder

Follow the order used by Excel 2007
master
Debao Zhang 11 years ago
parent
commit
9435a7e9d1
  1. 4
      src/xlsx/xlsxstyles.cpp

4
src/xlsx/xlsxstyles.cpp

@ -580,10 +580,10 @@ void Styles::writeCellXfs(QXmlStreamWriter &writer)
writer.writeAttribute(QStringLiteral("applyNumberFormat"), QStringLiteral("1")); writer.writeAttribute(QStringLiteral("applyNumberFormat"), QStringLiteral("1"));
if (format.hasFontData()) if (format.hasFontData())
writer.writeAttribute(QStringLiteral("applyFont"), QStringLiteral("1")); writer.writeAttribute(QStringLiteral("applyFont"), QStringLiteral("1"));
if (format.hasBorderData())
writer.writeAttribute(QStringLiteral("applyBorder"), QStringLiteral("1"));
if (format.hasFillData()) if (format.hasFillData())
writer.writeAttribute(QStringLiteral("applyFill"), QStringLiteral("1")); writer.writeAttribute(QStringLiteral("applyFill"), QStringLiteral("1"));
if (format.hasBorderData())
writer.writeAttribute(QStringLiteral("applyBorder"), QStringLiteral("1"));
if (format.hasAlignmentData()) if (format.hasAlignmentData())
writer.writeAttribute(QStringLiteral("applyAlignment"), QStringLiteral("1")); writer.writeAttribute(QStringLiteral("applyAlignment"), QStringLiteral("1"));

Loading…
Cancel
Save