sw/inc/SwStyleNameMapper.hxx     |    2 +-
 sw/source/filter/ww8/ww8par5.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 69c03b1fd4a5b6d782109f8fcaf66ba5939f2f2b
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Wed Dec 18 19:46:46 2024 +0200
Commit:     Noel Grandin <noelgran...@gmail.com>
CommitDate: Thu Dec 19 12:03:21 2024 +0100

    Index Link is a programmatic name
    
    Change-Id: Id909800fdd5db5dd2eadec92774c1dda4a435c34
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178735
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/inc/SwStyleNameMapper.hxx b/sw/inc/SwStyleNameMapper.hxx
index 80a18f28c5d4..f2403a30e1aa 100644
--- a/sw/inc/SwStyleNameMapper.hxx
+++ b/sw/inc/SwStyleNameMapper.hxx
@@ -118,7 +118,7 @@ public:
 
     // Get the Pool ID from the programmatic name
     SAL_WARN_UNUSED_RESULT
-    static sal_uInt16 GetPoolIdFromProgName(const OUString& rName,
+    SW_DLLPUBLIC static sal_uInt16 GetPoolIdFromProgName(const OUString& rName,
                                             SwGetPoolIdFromName);
 
     // used to convert the 4 special ExtraProg/UINames for
diff --git a/sw/source/filter/ww8/ww8par5.cxx b/sw/source/filter/ww8/ww8par5.cxx
index 19098daf65e4..8c18d83b3393 100644
--- a/sw/source/filter/ww8/ww8par5.cxx
+++ b/sw/source/filter/ww8/ww8par5.cxx
@@ -2314,7 +2314,7 @@ eF_ResT SwWW8ImplReader::Read_F_PgRef( WW8FieldDesc*, 
OUString& rStr )
             SwFormatINetFormat aURL( sURL, u""_ustr );
             static constexpr OUString sLinkStyle(u"Index Link"_ustr);
             const sal_uInt16 nPoolId =
-                SwStyleNameMapper::GetPoolIdFromUIName( sLinkStyle, 
SwGetPoolIdFromName::ChrFmt );
+                SwStyleNameMapper::GetPoolIdFromProgName( sLinkStyle, 
SwGetPoolIdFromName::ChrFmt );
             aURL.SetVisitedFormatAndId( sLinkStyle, nPoolId);
             aURL.SetINetFormatAndId( sLinkStyle, nPoolId );
             m_xCtrlStck->NewAttr( *m_pPaM->GetPoint(), aURL );
@@ -3633,7 +3633,7 @@ eF_ResT SwWW8ImplReader::Read_F_Hyperlink( WW8FieldDesc* 
/*pF*/, OUString& rStr
     {
         OUString sLinkStyle(u"Index Link"_ustr);
         sal_uInt16 nPoolId =
-            SwStyleNameMapper::GetPoolIdFromUIName( sLinkStyle, 
SwGetPoolIdFromName::ChrFmt );
+            SwStyleNameMapper::GetPoolIdFromProgName( sLinkStyle, 
SwGetPoolIdFromName::ChrFmt );
         aURL.SetVisitedFormatAndId( sLinkStyle, nPoolId );
         aURL.SetINetFormatAndId( sLinkStyle, nPoolId );
     }

Reply via email to