Commit 20725453 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

don't return an execution error if the user cancelled the dialog.

2005-07-20  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/poppler.c (run): don't return an execution error
	if the user cancelled the dialog.
parent 6ba98881
2005-07-20 Michael Natterer <mitch@gimp.org>
* plug-ins/common/poppler.c (run): don't return an execution error
if the user cancelled the dialog.
2005-07-20 Sven Neumann <sven@gimp.org>
* app/config/gimpconfig-dump.c: fixed typo (Debian bug #310018).
......
......@@ -223,25 +223,27 @@ run (const gchar *name,
}
if (status == GIMP_PDB_SUCCESS)
image_ID = load_image (doc, param[1].data.d_string,
loadvals.resolution,
loadvals.antialias,
pages);
{
image_ID = load_image (doc, param[1].data.d_string,
loadvals.resolution,
loadvals.antialias,
pages);
if (image_ID != -1)
{
*nreturn_vals = 2;
values[1].type = GIMP_PDB_IMAGE;
values[1].data.d_image = image_ID;
}
else
{
status = GIMP_PDB_EXECUTION_ERROR;
}
}
if (doc)
g_object_unref (doc);
if (image_ID != -1)
{
*nreturn_vals = 2;
values[1].type = GIMP_PDB_IMAGE;
values[1].data.d_image = image_ID;
}
else
{
status = GIMP_PDB_EXECUTION_ERROR;
}
g_free (pages->pages);
g_free (pages);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment