summaryrefslogtreecommitdiff
path: root/svx/source/tbxctrls/SvxPresetListBox.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/tbxctrls/SvxPresetListBox.cxx')
-rw-r--r--svx/source/tbxctrls/SvxPresetListBox.cxx7
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++)
{