diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-07-23 09:14:49 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-07-23 14:06:21 +0200 |
commit | 4e8b4a34c49d700cfebd3baeb0f2430e879cc236 (patch) | |
tree | 055d4266118485a6dace872504b99a355be79011 /editeng | |
parent | a7181c0b3898d32bae0deaf12ebcadd3de30a50e (diff) |
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>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/svxfont.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx index b57449f3c359..ef6197f85778 100644 --- a/editeng/source/items/svxfont.cxx +++ b/editeng/source/items/svxfont.cxx @@ -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; |