Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5ea455fe authored by Albert Astals Cid's avatar Albert Astals Cid

xps: fix file font unloading

Don't unload all fonts, only the ones this file loaded
parent 985e06a2
......@@ -1880,8 +1880,9 @@ XpsFile::XpsFile()
XpsFile::~XpsFile()
{
m_fontCache.clear();
m_fontDatabase.removeAllApplicationFonts();
for(int fontId : qAsConst(m_fontCache)) {
m_fontDatabase.removeApplicationFont(fontId);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment