diff options
Diffstat (limited to 'svtools/source/contnr/treelist.cxx')
-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 ); } |