summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f19d786)
raw | patch | inline | side by side (parent: f19d786)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 12 Jun 2008 02:43:08 +0000 (02:43 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Thu, 12 Jun 2008 02:43:08 +0000 (02:43 +0000) |
src/extension/internal/cairo-render-context.cpp | patch | blob | history | |
src/extension/internal/pdf-cairo.cpp | patch | blob | history |
diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp
index 887ffe602dc233416b4a4adb6474a5344f9058ee..3ec94af63ab2829653b7f798d59de991d507b566 100644 (file)
cairo_show_page(_cr);
cairo_destroy(_cr);
+ cairo_surface_finish(_surface);
+ cairo_status_t status = cairo_surface_status(_surface);
cairo_surface_destroy(_surface);
_cr = NULL;
_surface = NULL;
_stream = NULL;
}
- return true;
+ if (status == CAIRO_STATUS_SUCCESS)
+ return true;
+ else
+ return false;
}
void
index 92b8d92c4272f58fe500c00b6e07eab989ad9d1b..ed6eee5467e8df9a357b7c91717fd5c34be87b34 100644 (file)
cairo_show_page(cr);
cairo_destroy(cr);
+ cairo_surface_finish(pdf_surface);
+ cairo_status_t status = cairo_surface_status(pdf_surface);
cairo_surface_destroy(pdf_surface);
cr = NULL;
pdf_surface = NULL;
fclose(_stream);
_stream = 0;
- return 1;
+ if (status == CAIRO_STATUS_SUCCESS)
+ return true;
+ else
+ return false;
}
unsigned int