editeng: Don’t unintentionally set KernArray.mnSubUnitFactor

The first (and only) argument to KernArray constructor is nSubUnitFactor
not array length as the code here seems to imply.

Change-Id: Ie89c41d07f1aa13be595ead604df82ad775df433
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154799
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
This commit is contained in:
Khaled Hosny
2023-07-23 14:06:21 +02:00
committed by خالد حسني
parent a7181c0b38
commit 4e8b4a34c4
+1 -1
View File
@@ -441,7 +441,7 @@ Size SvxFont::GetPhysTxtSize( const OutputDevice *pOut, const OUString &rTxt,
if( IsFixKerning() && ( nLen > 1 ) )
{
auto nKern = GetFixKerning();
KernArray aDXArray(nLen);
KernArray aDXArray;
GetTextArray(pOut, rTxt, &aDXArray, nIdx, nLen);
tools::Long nOldValue = aDXArray[0];
sal_Int32 nSpaceCount = 0;