diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx index 16b8357b5d94..e477c6a60636 100644 --- a/sw/source/ui/misc/glossary.cxx +++ b/sw/source/ui/misc/glossary.cxx @@ -316,6 +316,7 @@ IMPL_LINK_TYPED( SwGlossaryDlg, GrpSelect, SvTreeListBox *, pBox, void ) aReq.AppendItem(SfxStringItem(FN_SET_ACT_GLOSSARY, sTemp)); aReq.Done(); } + Invalidate(InvalidateFlags::Update); } void SwGlossaryDlg::Apply() @@ -1014,6 +1015,12 @@ TriState SwGlTreeListBox::NotifyCopyingOrMoving( return TRISTATE_FALSE; // otherwise the entry is being set automatically } +void SwGlTreeListBox::ExpandedHdl() +{ + Invalidate(InvalidateFlags::Update); + SvTreeListBox::ExpandedHdl(); +} + OUString SwGlossaryDlg::GetCurrGrpName() const { SvTreeListEntry* pEntry = m_pCategoryBox->FirstSelected(); diff --git a/sw/source/uibase/inc/glossary.hxx b/sw/source/uibase/inc/glossary.hxx index ccc9759274c7..2cd8d7b92d44 100644 --- a/sw/source/uibase/inc/glossary.hxx +++ b/sw/source/uibase/inc/glossary.hxx @@ -80,6 +80,8 @@ public: virtual void RequestHelp( const HelpEvent& rHEvt ) override; virtual Size GetOptimalSize() const override; void Clear(); + + virtual void ExpandedHdl() override; }; class SwOneExampleFrame;