summaryrefslogtreecommitdiff
path: root/include/vcl/glyphitem.hxx
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2018-09-30 16:07:16 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2018-10-25 19:53:22 +0200
commite194f597ae5882e1cda2cac2925577fff609f101 (patch)
tree5607412d62d9f40415992255e849b8425e4cd6a3 /include/vcl/glyphitem.hxx
parentb5a6865a67dc6223dc164d2fe68dfdaf4dab5c39 (diff)
Change GlyphItem::nFallbackLevel to font instance
No need for a real reference, as GlyphItems are bound to their GenericSalLayout, which holds the valid reference and doesn't allow font change. Change-Id: I8e1129ef99f576e43d55f39aee040ceeb635d51d Reviewed-on: https://gerrit.libreoffice.org/62359 Reviewed-by: Khaled Hosny <khaledhosny@eglug.org> Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'include/vcl/glyphitem.hxx')
-rw-r--r--include/vcl/glyphitem.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/glyphitem.hxx b/include/vcl/glyphitem.hxx
index 39d99bf69744..306466b67723 100644
--- a/include/vcl/glyphitem.hxx
+++ b/include/vcl/glyphitem.hxx
@@ -41,10 +41,10 @@ struct VCL_DLLPUBLIC GlyphItem
sal_GlyphId m_aGlyphId;
Point m_aLinearPos; // absolute position of non rotated string
- int m_nFallbackLevel;
+ LogicalFontInstance* m_pFontInstance;
GlyphItem(int nCharPos, int nCharCount, sal_GlyphId aGlyphId, const Point& rLinearPos,
- long nFlags, int nOrigWidth, int nXOffset)
+ long nFlags, int nOrigWidth, int nXOffset, LogicalFontInstance* pFontInstance)
: m_nFlags(nFlags)
, m_nCharPos(nCharPos)
, m_nCharCount(nCharCount)
@@ -53,7 +53,7 @@ struct VCL_DLLPUBLIC GlyphItem
, m_nXOffset(nXOffset)
, m_aGlyphId(aGlyphId)
, m_aLinearPos(rLinearPos)
- , m_nFallbackLevel(0)
+ , m_pFontInstance(pFontInstance)
{
}