From 97601533cbef67bfdb5f25dc00d0dda743e8349e Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 14 Jan 2021 21:20:31 +0100 Subject: pdfium: add wrapper for FPDF_FILLMODE_* defines Which is, I think, the last direct pdfium usage outside vcl. Change-Id: I2e435e5a3669c6163bf2c20bc6d1d8bd4c88cecd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109314 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- svx/source/svdraw/svdpdf.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'svx/source') diff --git a/svx/source/svdraw/svdpdf.cxx b/svx/source/svdraw/svdpdf.cxx index e266609bd295..75f079540935 100644 --- a/svx/source/svdraw/svdpdf.cxx +++ b/svx/source/svdraw/svdpdf.cxx @@ -1011,13 +1011,13 @@ void ImpSdrPdfImport::ImportPath(std::unique_ptr con const double dWidth = 0.5 * fabs(sqrt2(aPathMatrix.a(), aPathMatrix.c()) * fWidth); mnLineWidth = convertPointToMm100(dWidth); - int nFillMode = FPDF_FILLMODE_ALTERNATE; - FPDF_BOOL bStroke = 1; // Assume we have to draw, unless told otherwise. - if (FPDFPath_GetDrawMode(pPageObject->getPointer(), &nFillMode, &bStroke)) + vcl::pdf::PDFFillMode nFillMode = vcl::pdf::PDFFillMode::Alternate; + bool bStroke = true; // Assume we have to draw, unless told otherwise. + if (pPageObject->getDrawMode(nFillMode, bStroke)) { - if (nFillMode == FPDF_FILLMODE_ALTERNATE) + if (nFillMode == vcl::pdf::PDFFillMode::Alternate) mpVD->SetDrawMode(DrawModeFlags::Default); - else if (nFillMode == FPDF_FILLMODE_WINDING) + else if (nFillMode == vcl::pdf::PDFFillMode::Winding) mpVD->SetDrawMode(DrawModeFlags::Default); else mpVD->SetDrawMode(DrawModeFlags::NoFill); -- cgit