[Libreoffice-commits] core.git: vcl/source
Caolán McNamara
caolanm at redhat.com
Tue Feb 14 09:28:26 UTC 2017
vcl/source/filter/ipdf/pdfread.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 3713c17ee474af6bcb22c219ab81108411083fa0
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Feb 14 08:53:47 2017 +0000
Werror=unused-function in some configs
Change-Id: I7cc4106063831f342c82c57b0476b9ac8c4b479a
diff --git a/vcl/source/filter/ipdf/pdfread.cxx b/vcl/source/filter/ipdf/pdfread.cxx
index ee31af6..d998402 100644
--- a/vcl/source/filter/ipdf/pdfread.cxx
+++ b/vcl/source/filter/ipdf/pdfread.cxx
@@ -29,12 +29,16 @@ using namespace com::sun::star;
namespace
{
+#if HAVE_FEATURE_PDFIUM
+
/// Convert to inch, then assume 96 DPI.
double pointToPixel(double fPoint)
{
return fPoint / 72 * 96;
}
+#endif
+
/// Does PDF to PNG conversion using pdfium.
bool generatePreview(SvStream& rStream, Graphic& rGraphic)
{
More information about the Libreoffice-commits
mailing list