removed GlyphCache as a member from TextElement.

This commit is contained in:
rachytski 2012-01-24 14:41:15 +04:00 committed by Alex Zolotarev
parent 928e5ca8bd
commit e1e25dff3b
2 changed files with 3 additions and 5 deletions

View file

@ -17,14 +17,13 @@ namespace yg
m_auxFontDesc(p.m_auxFontDesc),
m_logText(p.m_logText),
m_auxLogText(p.m_auxLogText),
m_log2vis(p.m_log2vis),
m_glyphCache(p.m_glyphCache)
m_log2vis(p.m_log2vis)
{
if (m_log2vis)
{
m_visText = m_glyphCache->log2vis(m_logText);
m_visText = p.m_glyphCache->log2vis(m_logText);
if (!m_auxLogText.empty())
m_auxVisText = m_glyphCache->log2vis(m_auxLogText);
m_auxVisText = p.m_glyphCache->log2vis(m_auxLogText);
}
else
{

View file

@ -38,7 +38,6 @@ namespace yg
strings::UniString m_auxVisText;
bool m_log2vis;
GlyphCache * m_glyphCache;
mutable vector<m2::AnyRectD> m_boundRects;