diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-29 16:25:47 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-29 21:30:54 -0400 |
commit | 0b03f7ed575838f90e6b1ebec3538a3a214f81fb (patch) | |
tree | 70b87e5d764cbb2796e2e99f5e2988e249060f18 /svtools | |
parent | fa8d10adbf12bef19cfe6dd39d2667944a2fb7d6 (diff) |
fdo#75058: Optimize autofilter item filling for non-tree items.
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index bb38545aa2d1..b1eff7b76e0e 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -24,7 +24,8 @@ #include <stdio.h> -SvTreeList::SvTreeList() +SvTreeList::SvTreeList() : + mbEnableInvalidate(true) { nEntryCount = 0; bAbsPositionsValid = false; @@ -1098,8 +1099,16 @@ void SvTreeList::SetListPositions( SvTreeListEntries& rEntries ) rFirst.pParent->InvalidateChildrensListPositions(); } +void SvTreeList::EnableInvalidate( bool bEnable ) +{ + mbEnableInvalidate = bEnable; +} + void SvTreeList::InvalidateEntry( SvTreeListEntry* pEntry ) { + if (!mbEnableInvalidate) + return; + Broadcast( LISTACTION_INVALIDATE_ENTRY, pEntry ); } |