diff options
author | Rishabh Kumar <kris.kr296@gmail.com> | 2016-07-13 00:31:28 +0530 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2016-07-14 09:12:23 +0000 |
commit | be95afad421230784f0ea1ec2054974c4359b9fa (patch) | |
tree | 4c23e83f1376f83db2d5a3228b4db5966ebc7f5d /svx | |
parent | f9ef86c7a1c10e16c4aa4988706047058ef7f167 (diff) |
[GSoC] Avoid reload of preset list in hatch tab
Change-Id: If2acb6df3c046de63b6b4069474e19fb87222a11
Reviewed-on: https://gerrit.libreoffice.org/27167
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/SvxPresetListBox.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/SvxPresetListBox.cxx b/svx/source/tbxctrls/SvxPresetListBox.cxx index 4492ace01537..df85e1f34f2a 100644 --- a/svx/source/tbxctrls/SvxPresetListBox.cxx +++ b/svx/source/tbxctrls/SvxPresetListBox.cxx @@ -29,7 +29,10 @@ #include <vcl/popupmenuwindow.hxx> SvxPresetListBox::SvxPresetListBox(vcl::Window* pParent, WinBits nWinStyle) - : ValueSet(pParent, nWinStyle) + : ValueSet(pParent, nWinStyle), + nColCount(2), + nRowCount(5), + aIconSize( Size(100,60) ) { SetEdgeBlending(true); SetExtraSpacing(4); @@ -88,7 +91,7 @@ void SvxPresetListBox::DrawLayout() template< typename ListType, typename EntryType > void SvxPresetListBox::FillPresetListBoxImpl(ListType & pList, sal_uInt32 nStartIndex) { - const Size aSize(100,60); + const Size aSize( GetIconSize() ); BitmapEx aBitmap; for(long nIndex = 0; nIndex < pList.Count(); nIndex++, nStartIndex++) { |