fix zip file error check

This commit is contained in:
tamasmeszaros 2018-05-23 12:24:11 +02:00
parent 7fe9a56ef8
commit 0c6eb19202

View file

@ -1258,7 +1258,7 @@ void Print::set_status(int percent, const std::string &message)
* Interface for a file printer of the slices. Implementation can be an SVG * Interface for a file printer of the slices. Implementation can be an SVG
* or PNG printer or any other format. * or PNG printer or any other format.
* *
* The format argument spefies the output format of the printer and it enables * The format argument specifies the output format of the printer and it enables
* different implementations of this class template for each supported format. * different implementations of this class template for each supported format.
* *
*/ */
@ -1287,7 +1287,7 @@ public:
/* /*
* Finish the selected layer. It means that no drawing is allowed on that * Finish the selected layer. It means that no drawing is allowed on that
* layer anymore. This fact can be used to prepare the file system output * layer anymore. This fact can be used to prepare the file system output
* data like png conmprimation and so on. * data like png comprimation and so on.
*/ */
void finishLayer(unsigned layer); void finishLayer(unsigned layer);
@ -1379,6 +1379,7 @@ public:
if(!zipfile.IsOk()) { if(!zipfile.IsOk()) {
BOOST_LOG_TRIVIAL(error) << "Can't create zip file for layers!"; BOOST_LOG_TRIVIAL(error) << "Can't create zip file for layers!";
return;
} }
wxZipOutputStream zipstream(zipfile); wxZipOutputStream zipstream(zipfile);