[Libreoffice-commits] core.git: sw/source

Szymon Kłos eszkadev at gmail.com
Thu Jun 2 10:54:49 UTC 2016


 sw/source/ui/misc/glossary.cxx    |    7 +++++++
 sw/source/uibase/inc/glossary.hxx |    2 ++
 2 files changed, 9 insertions(+)

New commits:
commit 7961a61efa8ed97a98d06dd2c08bd686faba8384
Author: Szymon Kłos <eszkadev at gmail.com>
Date:   Wed Jun 1 16:03:29 2016 +0200

    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 at libreoffice.org>
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sw/source/ui/misc/glossary.cxx b/sw/source/ui/misc/glossary.cxx
index 16b8357..e477c6a 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 ccc9759..2cd8d7b 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;


More information about the Libreoffice-commits mailing list