From 7543ff546995759ea88b219939896e55f81d894c28980461a3b0468d469c789c Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 9 Jul 2024 15:04:58 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=1174 --- pdfium-optional.patch | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/pdfium-optional.patch b/pdfium-optional.patch index f72e59d..523abde 100644 --- a/pdfium-optional.patch +++ b/pdfium-optional.patch @@ -1,19 +1,29 @@ --- external/pdfium/annot.patch.1 +++ external/pdfium/annot.patch.1 -@@ -2,7 +2,15 @@ diff --git a/fpdfsdk/fpdf_annot.cpp b/fpdfsdk/fpdf_annot.cpp +@@ -2,6 +2,17 @@ diff --git a/fpdfsdk/fpdf_annot.cpp b/fpdfsdk/fpdf_annot.cpp index bc1f7f7eb..075baf1df 100644 --- a/fpdfsdk/fpdf_annot.cpp +++ b/fpdfsdk/fpdf_annot.cpp --@@ -1366,6 +1366,42 @@ FPDFAnnot_GetFontSize(FPDF_FORMHANDLE hHandle, -+@@ -5,6 +5,7 @@ -+ #include "public/fpdf_annot.h" -+ -+ #include -++#include ++@@ -8,6 +8,10 @@ + #include + #include + #include -+@@ -1366,6 +1367,42 @@ FPDFAnnot_GetFontSize(FPDF_FORMHANDLE hHandle, +++#ifdef USE_SYSTEM_ABSEIL +++#include +++#include +++#endif ++ ++ #include "constants/annotation_common.h" ++ #include "core/fpdfapi/edit/cpdf_pagecontentgenerator.h" + @@ -1366,6 +1366,42 @@ FPDFAnnot_GetFontSize(FPDF_FORMHANDLE hHandle, return true; } - +@@ -32,7 +40,7 @@ index bc1f7f7eb..075baf1df 100644 + + if (!pWidget) + + return false; + + +-+ std::optional text_color = pWidget->GetTextColor(); +++ absl::optional text_color = pWidget->GetTextColor(); + + if (!text_color) + + return false; + +