diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-12-06 10:35:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-12-06 15:10:28 +0100 |
commit | 1c4810f804e19d2246f6976cdfdb54e474194843 (patch) | |
tree | 3720b97982f3d3a58ae8e7964e3d95802f4b778b /vcl/source/gdi/sallayout.cxx | |
parent | 67806532c397d7fc7ea93224a020f1f734c04077 (diff) |
Resolves: tdf#121936 uninitialized value used
since...
commit e194f597ae5882e1cda2cac2925577fff609f101
Date: Sun Sep 30 16:07:16 2018 +0200
Change GlyphItem::nFallbackLevel to font instance
Change-Id: I14b40a63cd48ef527e76e15af8f421ce48cce769
Reviewed-on: https://gerrit.libreoffice.org/64698
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/gdi/sallayout.cxx')
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index 0fea93f90ee3..aad45b39e73e 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -892,7 +892,7 @@ sal_Int32 GenericSalLayout::GetTextBreak( DeviceCoordinate nMaxWidth, DeviceCoor bool GenericSalLayout::GetNextGlyph(const GlyphItem** pGlyph, Point& rPos, int& nStart, - const PhysicalFontFace**, int* const) const + const PhysicalFontFace**, int* const pFallbackLevel) const { std::vector<GlyphItem>::const_iterator pGlyphIter = m_GlyphItems.Impl()->begin(); std::vector<GlyphItem>::const_iterator pGlyphIterEnd = m_GlyphItems.Impl()->end(); @@ -915,6 +915,8 @@ bool GenericSalLayout::GetNextGlyph(const GlyphItem** pGlyph, // update return data with glyph info *pGlyph = &(*pGlyphIter); + if (pFallbackLevel) + *pFallbackLevel = 0; ++nStart; // calculate absolute position in pixel units |