sw/source/core/doc/SwStyleNameMapper.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit f79569adeacc971ae1272871da3e4e5ee002c559
Author:     Nagy Tibor <[email protected]>
AuthorDate: Fri Jul 11 10:25:17 2025 +0200
Commit:     Michael Stahl <[email protected]>
CommitDate: Wed Jul 16 10:55:12 2025 +0200

    Revert "sw: add fallback for page styles using UIName identifiers"
    
    This reverts commit edc6bd92c937aab0403c29e6f960da51cf5e75d2.
    
    Reason for revert: The issue was on the extension side.
    It used the UI name for the page style instead of the programmatic name.
    
    Change-Id: I2e788c7dd864241d5e2fb9d165e93ee5d2132ad2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187680
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/sw/source/core/doc/SwStyleNameMapper.cxx 
b/sw/source/core/doc/SwStyleNameMapper.cxx
index 744af301744a..783a2c789162 100644
--- a/sw/source/core/doc/SwStyleNameMapper.cxx
+++ b/sw/source/core/doc/SwStyleNameMapper.cxx
@@ -316,10 +316,8 @@ void SwStyleNameMapper::FillUIName(
     {
         rFillName = UIName(aName.toString());
         // TabStyle: unfortunately ODF documents with UIName table styles exist
-        // PageDesc: same problem as TableStyle, page styles using UINames 
exist
-        if (eFlags == SwGetPoolIdFromName::TableStyle // see testTdf129568ui
-            || eFlags == SwGetPoolIdFromName::PageDesc
-            || GetPoolIdFromUIName(UIName(aName.toString()), eFlags) == 
USHRT_MAX)
+        if (eFlags == SwGetPoolIdFromName::TableStyle || // see testTdf129568ui
+            GetPoolIdFromUIName(UIName(aName.toString()), eFlags) == USHRT_MAX)
         {
             // aName isn't in our Prog name table...check if it has a " 
(user)" suffix, if so remove it
             lcl_CheckSuffixAndDelete(rFillName);

Reply via email to