From 0b03f7ed575838f90e6b1ebec3538a3a214f81fb Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 29 Apr 2014 16:25:47 -0400 Subject: fdo#75058: Optimize autofilter item filling for non-tree items. --- svtools/source/contnr/treelist.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'svtools') 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 -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 ); } -- cgit