summaryrefslogtreecommitdiff
path: root/sw/source/uibase/wrtsh
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2020-08-31 13:08:06 -0800
committerJim Raykowski <raykowj@gmail.com>2020-09-05 07:39:17 +0200
commit6935dcd80f1677a293a412da3d94afd1217c0bd1 (patch)
treef4e555bfd28b68aaaeb94cb4789828cb89d90fbc /sw/source/uibase/wrtsh
parentbb64b19e3e8942e610db2d3596d859f7c7864811 (diff)
Improve outline position tracking and content visibility
state update in Writer Navigator when outline content visibility is toggled. Change-Id: I28ff127bc2f7776b72a2dc32ae2f6147169c8bac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101771 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'sw/source/uibase/wrtsh')
-rw-r--r--sw/source/uibase/wrtsh/wrtsh1.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/wrtsh/wrtsh1.cxx b/sw/source/uibase/wrtsh/wrtsh1.cxx
index 96cc83e62167..60ac6cca4cc6 100644
--- a/sw/source/uibase/wrtsh/wrtsh1.cxx
+++ b/sw/source/uibase/wrtsh/wrtsh1.cxx
@@ -2107,7 +2107,8 @@ void SwWrtShell::ToggleOutlineContentVisibility(size_t nPos, bool bForceFold)
}
pSttNd->GetTextNode()->SetAttrOutlineContentVisible(false);
}
- GetView().GetEditWin().Invalidate();
+ GetView().GetEditWin().Invalidate(InvalidateFlags::Update);
+ GetDoc()->GetDocShell()->Broadcast(SfxHint(SfxHintId::DocChanged));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */