[gimp/metadata-browser] file-pdf-save: Just use the PDF_DEBUG case as default
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] file-pdf-save: Just use the PDF_DEBUG case as default
- Date: Wed, 12 Sep 2012 22:17:42 +0000 (UTC)
commit c8de1ac62b3526a97e85a7ca973e2ae33c7b63b8
Author: Mukund Sivaraman <muks banu com>
Date: Thu Dec 1 01:12:35 2011 +0530
file-pdf-save: Just use the PDF_DEBUG case as default
plug-ins/common/file-pdf-save.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/plug-ins/common/file-pdf-save.c b/plug-ins/common/file-pdf-save.c
index 343b123..4a0836c 100644
--- a/plug-ins/common/file-pdf-save.c
+++ b/plug-ins/common/file-pdf-save.c
@@ -127,9 +127,6 @@
#define THUMB_WIDTH 90
#define THUMB_HEIGHT 120
-#define PDF_DEBUG FALSE
-
-
typedef struct {
gboolean convert;
gboolean ignore;
@@ -394,7 +391,6 @@ run (const gchar *name,
pdf_file = cairo_pdf_surface_create (file_name, 1, 1);
if (cairo_surface_status (pdf_file) != CAIRO_STATUS_SUCCESS)
{
-#if PDF_DEBUG
char *str = g_strdup_printf
("An error occured while creating the PDF file!\n"
"%s\n"
@@ -403,10 +399,7 @@ run (const gchar *name,
gimp_message (str);
g_free (str);
-#else
- gimp_message ("An error occured while creating the PDF file!\n"
- "Make sure you entered a valid filename and that the selected location isn't read only!");
-#endif
+
values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR;
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]