diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-01-14 21:20:31 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-01-15 08:35:11 +0100 |
commit | 97601533cbef67bfdb5f25dc00d0dda743e8349e (patch) | |
tree | 6eae76971eeff1980c6f82289055b708e6f20621 /svx/source | |
parent | 61a3aaae61dfb6d9538eeeed4721d44293d737f4 (diff) |
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 <vmiklos@collabora.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdpdf.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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<vcl::pdf::PDFiumPageObject> 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); |