include/svx/SvxPresetListBox.hxx | 1 + svx/source/tbxctrls/SvxPresetListBox.cxx | 5 +++++ 2 files changed, 6 insertions(+)
New commits: commit da10ce7452554a6c2ea6f664a3f87b8125369d06 Author: Caolán McNamara <[email protected]> AuthorDate: Thu May 14 17:07:30 2020 +0100 Commit: Caolán McNamara <[email protected]> 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 <[email protected]> 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); } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
