xps: fix file font unloading

Don't unload all fonts, only the ones this file loaded
remotes/origin/Applications/18.04
Albert Astals Cid 8 years ago
parent 985e06a2f5
commit 5ea455fe68
  1. 5
      generators/xps/generator_xps.cpp

@ -1880,8 +1880,9 @@ XpsFile::XpsFile()
XpsFile::~XpsFile()
{
m_fontCache.clear();
m_fontDatabase.removeAllApplicationFonts();
for(int fontId : qAsConst(m_fontCache)) {
m_fontDatabase.removeApplicationFont(fontId);
}
}

Loading…
Cancel
Save