summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2023-04-09 12:28:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2023-04-09 17:41:39 +0200
commitf0210c8f18956b9ff2c1a76661bc5190b1cf9061 (patch)
tree98229834ab830b2fbae86432e29fd84353ba658e
parent3fbadf2801f4c13f086d76a3ed566180cc0693dc (diff)
cid#1524699 silence Uninitialized scalar variable
Change-Id: I32fc2570e8553be356e5c5c059b92791f5e9106a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150164 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index ae75cbc26abb..e7689c1028e1 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -210,6 +210,7 @@ static CairoFontsCache::CacheId makeCacheId(const GenericSalLayout& rLayout)
aId.maFace = aFace;
aId.mpOptions = rFont.GetFontOptions();
aId.mbEmbolden = rInstance.NeedsArtificialBold();
+ aId.mbVerticalMetrics = false;
return aId;
}
@@ -335,7 +336,6 @@ void CairoTextRender::DrawTextLayout(const GenericSalLayout& rLayout, const SalG
rFSD.maTargetName == "OpenSymbol" && !glyph_extrarotation.back() && !rLayout.GetOrientation())
{
CairoFontsCache::CacheId aId = makeCacheId(rLayout);
- aId.mbVerticalMetrics = false;
ApplyFont(cr, aId, nWidth, nHeight, 0, rLayout);
cairo_text_extents_t stretched_extents;