Return false when save() failed

This commit is contained in:
Debao Zhang
2013-08-30 13:37:55 +08:00
parent 9154e483b9
commit b80286d7b7
5 changed files with 11 additions and 3 deletions
+2
View File
@@ -88,6 +88,8 @@ Package::Package(Workbook *workbook) :
bool Package::createPackage(const QString &packageName)
{
ZipWriter zipWriter(packageName);
if (zipWriter.error())
return false;
m_workbook->styles()->clearExtraFormatInfo(); //These info will be generated when write the worksheet data.
writeWorksheetFiles(zipWriter);