Fix issue with caching SVG font engine.

This commit is contained in:
Roman Telezhynskyi 2023-08-30 19:29:28 +03:00
parent 5b533473bd
commit 4db2e04a84

View File

@ -366,7 +366,11 @@ auto VSvgFontDatabase::QueryFontEngine(const QString &family, SVGFontStyle style
QByteArray hash = font.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())