summaryrefslogtreecommitdiff
path: root/sw/source/uibase/inc/conttree.hxx
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail..com>2020-02-26 20:30:01 -0900
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-03-03 08:35:47 +0100
commit37b4784ca722aa0496cda95191869c2086223e24 (patch)
tree2b41a858fe3f3fc10c61fb953599cb99773423b6 /sw/source/uibase/inc/conttree.hxx
parentb0a07d94095883c17ab444801a27d30819aec201 (diff)
Keep selections selected after outline moves
and don't update content view until after move is complete. In this patch a flag is used to not allow document changed notifications to rebuild the content tree while doing outline moves. This flag also prevents the content view from being update until after outline move is complete. A condition is added in SwContentTree::Paint which prevents a focus rectangle flash at the top of the list from SvTreeListBox::Paint when the tree is empty. Change-Id: I5691a532a6bb916c3152900eda3bc9333c24871e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89608 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/inc/conttree.hxx')
-rw-r--r--sw/source/uibase/inc/conttree.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/inc/conttree.hxx b/sw/source/uibase/inc/conttree.hxx
index c134e10551b3..c42b081e7aa0 100644
--- a/sw/source/uibase/inc/conttree.hxx
+++ b/sw/source/uibase/inc/conttree.hxx
@@ -122,6 +122,8 @@ class SwContentTree final
// outline root mode drag & drop
std::vector< SvTreeListEntry* > m_aDndOutlinesSelected;
+ bool m_bIsInPromoteDemote = false;
+
/**
* Before any data will be deleted, the last active entry has to be found.
* After this the UserData will be deleted