Fix issue with caching SVG font engine.
This commit is contained in:
parent
5b533473bd
commit
4db2e04a84
|
@ -366,7 +366,11 @@ auto VSvgFontDatabase::QueryFontEngine(const QString &family, SVGFontStyle style
|
||||||
QByteArray hash = font.Hash();
|
QByteArray hash = font.Hash();
|
||||||
if (m_fontEngineCache.contains(hash))
|
if (m_fontEngineCache.contains(hash))
|
||||||
{
|
{
|
||||||
return {*m_fontEngineCache.object(hash)};
|
VSvgFontEngine engine = *m_fontEngineCache.object(hash);
|
||||||
|
VCommonSettings *settings = VAbstractApplication::VApp()->Settings();
|
||||||
|
engine.SetFontPointSize(pointSize > 0 ? pointSize : settings->GetPatternLabelFontSize());
|
||||||
|
|
||||||
|
return engine;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (font.IsValid())
|
if (font.IsValid())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user