[systemsettings] [Bug 409518] Visiting Fonts KCM changes antialliasing settings without warning

Antonio Rojas bugzilla_noreply at kde.org
Wed Jul 24 00:16:18 BST 2019


https://bugs.kde.org/show_bug.cgi?id=409518

--- Comment #24 from Antonio Rojas <arojas at archlinux.org> ---
(In reply to Antonio Rojas from comment #23)
Alright, found the issue. This is indeed a (very tricky) case of uninitialized
variables. The problem is in PreviewImageProvider::requestImage, which saves
the xft exclude range to temporary variables oldStart, oldEnd which are not
initialized, then sets the exclude range to (0,0) to perform some computations,
and finally restores the old exclude range from the oldStart, oldEnd variables.

The issue comes up when the original exclude range is (0,0), in which case
xft.getExcludeRange does not assign any value to the variables. So, at the end,
the exclude range was set to whatever random values these variables were
storing.

Fixed in https://phabricator.kde.org/D22707 by properly initializing the
variables.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list