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

New commits:
commit 53277b6d06e2b4bfef9e5d47329aabee77c15a18
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Wed Feb 1 12:10:13 2023 +0100
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Feb 6 13:05:20 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>
    (cherry picked from commit 52ebc632b3cfa122dcb178cf28d8dbc7c7c57007)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146525
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/source/core/unocore/unosrch.cxx 
b/sw/source/core/unocore/unosrch.cxx
index 646d5955ba90..fe35dba300be 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