diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-05-22 16:50:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-05-22 17:34:40 +0100 |
commit | c19c9dfc69b73ae7dbd7d4b9e68ec0a7c7891913 (patch) | |
tree | a354333a916e2020c28f55f924da1c5a639471aa /vcl/source/control | |
parent | d484b12a851df24b2c5779b73c231a20a55a0374 (diff) |
setting max line count should allow extra values to be added later
Change-Id: Ia693c83b8d27cacbd257f81b5eae2936fc5f8a6f
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/combobox.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/lstbox.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index 5234a521d7e1..e89bc536ea26 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -569,7 +569,7 @@ void ComboBox::SetDropDownLineCount( sal_uInt16 nLines ) void ComboBox::AdaptDropDownLineCountToMaximum() { // adapt to maximum allowed number - SetDropDownLineCount(std::min(GetEntryCount(), GetSettings().GetStyleSettings().GetListBoxMaximumLineCount())); + SetDropDownLineCount(GetSettings().GetStyleSettings().GetListBoxMaximumLineCount()); } // ----------------------------------------------------------------------- diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx index 741558e2fd2d..31dfde2ac5e7 100644 --- a/vcl/source/control/lstbox.cxx +++ b/vcl/source/control/lstbox.cxx @@ -593,7 +593,7 @@ void ListBox::SetDropDownLineCount( sal_uInt16 nLines ) void ListBox::AdaptDropDownLineCountToMaximum() { // adapt to maximum allowed number - SetDropDownLineCount(std::min(GetEntryCount(), GetSettings().GetStyleSettings().GetListBoxMaximumLineCount())); + SetDropDownLineCount(GetSettings().GetStyleSettings().GetListBoxMaximumLineCount()); } // ----------------------------------------------------------------------- |