diff options
author | Tomaž Vajngerl <quikee@gmail.com> | 2012-09-20 20:52:04 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2012-09-20 21:17:15 +0200 |
commit | 3da2a6a58784a3c607ea4e440865478f1a4fe56e (patch) | |
tree | ce5e8a10b07d3bf9f30de5527d2fa39b899295b7 /oovbaapi | |
parent | c630a2458e9b9f19fbfa03034c8e3f20232f77df (diff) |
fdo#49350 Speedup entry painting for SvTreeListBox
Painting code for entry in SvTreeListBox switches between default
and highlight font (which is only the default font with a different
colour). This is done using SetFont which assumes that the font
changes entry dimensions, which then recalculates everything. This
is done for every entry so it is slow if there are a moderate number
of entries. Fix here is to call Control::SetFont - we can do this
because we know that switching between highlight and default font
wont change the font dimensions.
On the other hand - this highlighting entries when selected is
(at least on linux) already supported by the native widget.
Change-Id: I12d32f6f7b43e669442e462ad4dd80cde24b9e74
Diffstat (limited to 'oovbaapi')
0 files changed, 0 insertions, 0 deletions