summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMark Hung <marklm9@gmail.com>2022-05-18 06:02:34 +0800
committerCaolán McNamara <caolanm@redhat.com>2022-05-18 09:50:16 +0200
commitbeb3b39ddf04d90b4c18cb15c35dccac35f4dcb7 (patch)
tree412d8a2679aad03b957a5eb95f5e4f37241cb7c8 /sw
parent6e9d183d4c1107d15dd0d5941cdca79cb4731693 (diff)
fix CID#1504441 for SwFntObj.
Change-Id: Ia5dfb07e2c3e980f6fd8664f648ef96aa2c0d345 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134501 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/txtnode/fntcache.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/fntcache.cxx b/sw/source/core/txtnode/fntcache.cxx
index b3fe68906821..838547282770 100644
--- a/sw/source/core/txtnode/fntcache.cxx
+++ b/sw/source/core/txtnode/fntcache.cxx
@@ -112,6 +112,8 @@ SwFntObj::SwFntObj(const SwSubFont &rFont, std::uintptr_t nFontCacheId, SwViewSh
, m_nScrHeight(0)
, m_nPrtHeight(USHRT_MAX)
, m_nPropWidth(rFont.GetPropWidth())
+ , m_nScrHangingBaseline(0)
+ , m_nPrtHangingBaseline(0)
{
m_nZoom = pSh ? pSh->GetViewOptions()->GetZoom() : USHRT_MAX;
m_bSymbol = RTL_TEXTENCODING_SYMBOL == m_aFont.GetCharSet();