Browse Source

Fix bug: add missed patternType

master
Debao Zhang 11 years ago
parent
commit
d3ac530113
  1. 3
      src/xlsx/xlsxformat.h
  2. 2
      src/xlsx/xlsxstyles.cpp

3
src/xlsx/xlsxformat.h

@ -126,7 +126,8 @@ public:
PatternLightUp,
PatternLightTrellis,
PatternGray125,
PatternGray0625
PatternGray0625,
PatternLightGrid
};
~Format();

2
src/xlsx/xlsxstyles.cpp

@ -403,6 +403,7 @@ void Styles::writeFill(XmlStreamWriter &writer, FillData *fill)
patternStrings[Format::PatternLightTrellis] = QStringLiteral("lightTrellis");
patternStrings[Format::PatternGray125] = QStringLiteral("gray125");
patternStrings[Format::PatternGray0625] = QStringLiteral("gray0625");
patternStrings[Format::PatternLightGrid] = QStringLiteral("lightGrid");
}
writer.writeStartElement(QStringLiteral("fill"));
@ -682,6 +683,7 @@ bool Styles::readFill(XmlStreamReader &reader)
patternValues[QStringLiteral("lightTrellis")] = Format::PatternLightTrellis;
patternValues[QStringLiteral("gray125")] = Format::PatternGray125;
patternValues[QStringLiteral("gray0625")] = Format::PatternGray0625;
patternValues[QStringLiteral("lightGrid")] = Format::PatternLightGrid;
}
QSharedPointer<FillData> fill(new FillData);

Loading…
Cancel
Save