vcl/source/font/FeatureCollector.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3a541e3ba663485f94caf2803a05f7109653dce8
Author:     Khaled Hosny <kha...@aliftype.com>
AuthorDate: Thu Aug 25 19:07:37 2022 +0200
Commit:     خالد حسني <kha...@aliftype.com>
CommitDate: Thu Aug 25 20:11:37 2022 +0200

    FeatureCollector: Fix parameter code for named parameters
    
    The code are 1-indexed (since 0 means disabled).
    
    Change-Id: I1d4ed80ba91191645305aadbbbb2d621116c5d36
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138842
    Tested-by: Jenkins
    Reviewed-by: خالد حسني <kha...@aliftype.com>

diff --git a/vcl/source/font/FeatureCollector.cxx 
b/vcl/source/font/FeatureCollector.cxx
index c792d50d7e17..653712c27e93 100644
--- a/vcl/source/font/FeatureCollector.cxx
+++ b/vcl/source/font/FeatureCollector.cxx
@@ -158,7 +158,7 @@ void FeatureCollector::collectForTable(hb_tag_t aTableTag)
                         hb_ot_name_id_t aNameID = aFirstParameterID + i;
                         OUString sName = getName(m_pHbFace, aNameID, 
sLanguage);
                         if (!sName.isEmpty())
-                            aParameters.emplace_back(uint32_t(i), sName);
+                            aParameters.emplace_back(uint32_t(i + 1), sName);
                     }
                 }
             }

Reply via email to