Fix the cell content written for bool type

This commit is contained in:
Debao Zhang
2013-08-26 10:16:33 +08:00
parent 98611399fd
commit a042f5bc60
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -413,7 +413,7 @@ void Worksheet::writeCellData(XmlStreamWriter &writer, int row, int col, const X
} else if (data.dataType == XlsxCellData::Boolean) {
writer.writeAttribute("t", "b");
writer.writeTextElement("v", data.value.toBool() ? "True" : "False");
writer.writeTextElement("v", data.value.toBool() ? "1" : "0");
} else if (data.dataType == XlsxCellData::Blank) {
//Ok, empty here.
}