[poppler] utils/pdftocairo.cc
Adrian Johnson
ajohnson at kemper.freedesktop.org
Sun Jul 17 12:12:32 UTC 2016
utils/pdftocairo.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 954ee650047c185523f3e20e92f8fc4c67308196
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Sun Jul 17 21:38:54 2016 +0930
pdftocairo: Use fprintf for printing errors
diff --git a/utils/pdftocairo.cc b/utils/pdftocairo.cc
index 2997683..91b77a5 100644
--- a/utils/pdftocairo.cc
+++ b/utils/pdftocairo.cc
@@ -685,7 +685,7 @@ static void renderPage(PDFDoc *doc, CairoOutputDev *cairoOut, int pg,
status = cairo_status(cr);
if (status)
- error(errInternal, -1, "cairo error: {0:s}\n", cairo_status_to_string(status));
+ fprintf(stderr, "cairo error: %s\n", cairo_status_to_string(status));
cairo_destroy (cr);
}
@@ -706,7 +706,7 @@ static void endPage(GooString *imageFileName)
cairo_surface_finish(surface);
status = cairo_surface_status(surface);
if (status)
- error(errInternal, -1, "cairo error: {0:s}\n", cairo_status_to_string(status));
+ fprintf(stderr, "cairo error: %s\n", cairo_status_to_string(status));
cairo_surface_destroy(surface);
}
@@ -720,7 +720,7 @@ static void endDocument()
cairo_surface_finish(surface);
status = cairo_surface_status(surface);
if (status)
- error(errInternal, -1, "cairo error: {0:s}\n", cairo_status_to_string(status));
+ fprintf(stderr, "cairo error: %s\n", cairo_status_to_string(status));
cairo_surface_destroy(surface);
#ifdef CAIRO_HAS_WIN32_SURFACE
if (printToWin32)
More information about the poppler
mailing list