sw/source/core/unocore/unosrch.cxx |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 52ebc632b3cfa122dcb178cf28d8dbc7c7c57007
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Wed Feb 1 12:10:13 2023 +0100
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Fri Feb 3 10:55:12 2023 +0000

    Related tdf#153272: add some missing properties in SwSearchProperties
    
    RES_PARATR_ORPHANS
    RES_PARATR_WIDOWS
    
    Change-Id: Ied760289e1ef8d60602991e5cdc0c743a31fd236
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146435
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>

diff --git a/sw/source/core/unocore/unosrch.cxx 
b/sw/source/core/unocore/unosrch.cxx
index 4f716230de8d..b9ee20b02c33 100644
--- a/sw/source/core/unocore/unosrch.cxx
+++ b/sw/source/core/unocore/unosrch.cxx
@@ -144,7 +144,9 @@ void SwSearchProperties_Impl::FillItemSet(SfxItemSet& rSet, 
bool bIsValueSearch)
     pCharReliefItem,
     pCharRotate,
     pCharScaleWidth,
-    pParaVertAlign;
+    pParaVertAlign,
+    pParaOrphans,
+    pParaWidows;
 
     auto funcClone = [&rSet](sal_uInt16 nWID, std::unique_ptr<SfxPoolItem> & 
rpPoolItem)
     {
@@ -314,6 +316,12 @@ void SwSearchProperties_Impl::FillItemSet(SfxItemSet& 
rSet, bool bIsValueSearch)
             case RES_PARATR_VERTALIGN:
                 pTempItem = funcClone(nWID, pParaVertAlign);
             break;
+            case RES_PARATR_ORPHANS:
+                pTempItem = funcClone(nWID, pParaOrphans);
+            break;
+            case RES_PARATR_WIDOWS:
+                pTempItem = funcClone(nWID, pParaWidows);
+            break;
         }
         if(pTempItem)
         {

Reply via email to