[gimp] plugins: feature #449 allow fract DPI values when importing PDF
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plugins: feature #449 allow fract DPI values when importing PDF
- Date: Mon, 18 Jan 2021 19:28:49 +0000 (UTC)
commit a55cab8f80748f405c6dcf403f8848b301c992ae
Author: Stanislav Grinkov <43956-StanislavGrinkov users noreply gitlab gnome org>
Date: Mon Jan 18 22:19:21 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 76a58cc030..83800133f2 100644
--- a/plug-ins/common/file-pdf-load.c
+++ b/plug-ins/common/file-pdf-load.c
@@ -253,7 +253,7 @@ static GimpImage * load_image (PopplerDocument *doc,
GFile *file,
GimpRunMode run_mode,
GimpPageSelectorTarget target,
- guint32 resolution,
+ gdouble resolution,
gboolean antialias,
PdfSelectedPages *pages);
@@ -783,7 +783,7 @@ load_image (PopplerDocument *doc,
GFile *file,
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]