[Libreoffice-commits] core.git: include/svx svx/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Thu May 14 18:12:10 UTC 2020


 include/svx/SvxPresetListBox.hxx         |    1 +
 svx/source/tbxctrls/SvxPresetListBox.cxx |    5 +++++
 2 files changed, 6 insertions(+)

New commits:
commit da10ce7452554a6c2ea6f664a3f87b8125369d06
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu May 14 17:07:30 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu May 14 20:11:35 2020 +0200

    Related: tdf#132852 SetExtraSpacing can't precede SetDrawingArea
    
    Change-Id: I9713527122a016021f4e21824e0287d7397e754f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94249
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/include/svx/SvxPresetListBox.hxx b/include/svx/SvxPresetListBox.hxx
index f246ee6b2906..7b5cca421f54 100644
--- a/include/svx/SvxPresetListBox.hxx
+++ b/include/svx/SvxPresetListBox.hxx
@@ -42,6 +42,7 @@ public:
 
     virtual void Resize() override;
     virtual bool Command(const CommandEvent& rEvent) override;
+    virtual void SetDrawingArea(weld::DrawingArea* pDrawingArea) override;
     Size const & GetIconSize() const { return aIconSize; }
 
     void SetRenameHdl( const Link<SvxPresetListBox*,void>& rLink )
diff --git a/svx/source/tbxctrls/SvxPresetListBox.cxx b/svx/source/tbxctrls/SvxPresetListBox.cxx
index 1b9aa8e8beed..adb623bf5dd5 100644
--- a/svx/source/tbxctrls/SvxPresetListBox.cxx
+++ b/svx/source/tbxctrls/SvxPresetListBox.cxx
@@ -28,6 +28,11 @@ SvxPresetListBox::SvxPresetListBox(std::unique_ptr<weld::ScrolledWindow> pWindow
     , aIconSize(60, 64)
 {
     SetEdgeBlending(true);
+}
+
+void SvxPresetListBox::SetDrawingArea(weld::DrawingArea* pDrawingArea)
+{
+    ValueSet::SetDrawingArea(pDrawingArea);
     SetExtraSpacing(4);
 }
 


More information about the Libreoffice-commits mailing list