RichString: Using Format instead of Format *

This commit is contained in:
Debao Zhang
2013-11-21 21:00:33 +08:00
parent 3e6e95be87
commit 390440d0fa
9 changed files with 103 additions and 97 deletions
+1 -1
View File
@@ -1175,7 +1175,7 @@ void WorksheetPrivate::writeCellData(XmlStreamWriter &writer, int row, int col,
RichString string = cell->d_ptr->richString;
for (int i=0; i<string.fragmentCount(); ++i) {
writer.writeStartElement(QStringLiteral("r"));
if (string.fragmentFormat(i)) {
if (string.fragmentFormat(i).hasFontData()) {
writer.writeStartElement(QStringLiteral("rPr"));
//:Todo
writer.writeEndElement();// rPr