Invalidate the AutoText Dialog after selection
Changes: - added invalidate call after entry selection and expand Behaviour before patch (Linux): 1. Open Writer 2. Open AutoText Dialog: Tools > AutoText 3. Expand/select entry Insert button is still disabled / entry is not expanded. To force repaint you had to use mouse scroll. Change-Id: I814db71dea02273998f675c3b140d554f2e109ba Reviewed-on: https://gerrit.libreoffice.org/25783 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
committed by
Caolán McNamara
parent
53bc542093
commit
7961a61efa
@@ -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();
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user