1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-12-21 12:40:08 +00:00
This commit is contained in:
Lu Wang 2013-09-26 10:09:42 +08:00
parent 0be34cb104
commit 2e53655b27
2 changed files with 8 additions and 2 deletions

View File

@ -17,4 +17,4 @@ Arthur Titeica <arthur.titeica@gmail.com>
Deepak Thukral <iapain@iapa.in>
Jamie Ly <me@jamie.ly>
Lu Wang <coolwanglu@gmail.com>
Steven Lee <rubypdf@gmail.com>

View File

@ -188,10 +188,16 @@ void SplashBackgroundRenderer::dump_image(const char * filename, int x1, int y1,
p += row_size;
}
if(!writer->writePointers(pointers.data(), height)) {
if(!writer->writePointers(pointers.data(), height))
{
throw "Cannot write background image";
}
if(!writer->close())
{
throw "Cannot finish background image";
}
fclose(f);
}