[gimp/gimp-2-10] plugins: feature #449 allow fract DPI values when importing PDF
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] plugins: feature #449 allow fract DPI values when importing PDF
- Date: Sun, 24 Jan 2021 16:58:32 +0000 (UTC)
commit 822de6891a19a3d97eb5ffd9d7ffa42ca2146dcf
Author: Stanislav Grinkov <43956-stanislavgrinkov users noreply gitlab gnome org>
Date: Sun Jan 24 11:56:12 2021 +0600
plugins: feature #449 allow fract DPI values when importing PDF
This commit fixes the issue when requested page width/height was
not honored because DPI resolution value was constrained to whole
integer numbers only.
plug-ins/common/file-pdf-load.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-pdf-load.c b/plug-ins/common/file-pdf-load.c
index b2c12fa5a6..60e625fbc8 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -85,7 +85,7 @@ static gint32 load_image (PopplerDocument *doc,
const gchar *filename,
GimpRunMode run_mode,
GimpPageSelectorTarget target,
- guint32 resolution,
+ gdouble resolution,
gboolean antialias,
PdfSelectedPages *pages);
@@ -1019,7 +1019,7 @@ load_image (PopplerDocument *doc,
const gchar *filename,
GimpRunMode run_mode,
GimpPageSelectorTarget target,
- guint32 resolution,
+ gdouble resolution,
gboolean antialias,
PdfSelectedPages *pages)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]