diff --git a/include/svx/SvxColorValueSet.hxx b/include/svx/SvxColorValueSet.hxx index dd8f93348153..1872b58fdf04 100644 --- a/include/svx/SvxColorValueSet.hxx +++ b/include/svx/SvxColorValueSet.hxx @@ -41,7 +41,7 @@ public: void addEntriesForXColorList(const XColorList& rXColorList, sal_uInt32 nStartIndex = 1); void addEntriesForColorSet(const std::set& rColorSet, const OUString& rNamePrefix); Size layoutAllVisible(sal_uInt32 nEntryCount); - Size layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount); + void layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount); virtual FactoryFunction GetUITestFactory() const override; }; diff --git a/svx/source/tbxctrls/SvxColorValueSet.cxx b/svx/source/tbxctrls/SvxColorValueSet.cxx index 9176c00a2a8d..4b4547dfce59 100644 --- a/svx/source/tbxctrls/SvxColorValueSet.cxx +++ b/svx/source/tbxctrls/SvxColorValueSet.cxx @@ -124,7 +124,7 @@ void SvxColorValueSet::Resize() ValueSet::Resize(); } -Size SvxColorValueSet::layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount) +void SvxColorValueSet::layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount) { if(!nEntryCount) { @@ -157,15 +157,10 @@ Size SvxColorValueSet::layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntry SetStyle(aWinBits|WB_VSCROLL); } - // set height to wanted height - aNewSize.setHeight( nHeight ); - SetItemWidth(aItemSize.Width()); SetItemHeight(aItemSize.Height()); SetColCount(SvxColorValueSet::getColumnCount()); SetLineCount(nLineCount); - - return aNewSize; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */