diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-18 21:45:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-18 21:45:26 +0100 |
commit | 3b696181ebf1fd4c3ecff4a1fc9ed84a5db9b3e3 (patch) | |
tree | 2a97407f6c70a8fee96b691fed855f08cf7db44e /vcl/source/control | |
parent | 4e5fdfb31e62300b20f8122a73206722b1d4fc0f (diff) |
SetMaxWidthInChars should be SetMinWidthInChars
Change-Id: I5cf508e7930eb7e04016ffa43683f76a07e5173e
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/combobox.cxx | 6 | ||||
-rw-r--r-- | vcl/source/control/edit.cxx | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx index 90515ccb29cd..3ec6e64f1933 100644 --- a/vcl/source/control/combobox.cxx +++ b/vcl/source/control/combobox.cxx @@ -61,7 +61,7 @@ ComboBox::ComboBox( WindowType nType ) : Edit( nType ) { ImplInitComboBoxData(); - SetMaxWidthInChars(0); + SetMinWidthInChars(0); } // ----------------------------------------------------------------------- @@ -71,7 +71,7 @@ ComboBox::ComboBox( Window* pParent, WinBits nStyle ) : { ImplInitComboBoxData(); ImplInit( pParent, nStyle ); - SetMaxWidthInChars(0); + SetMinWidthInChars(0); } // ----------------------------------------------------------------------- @@ -85,7 +85,7 @@ ComboBox::ComboBox( Window* pParent, const ResId& rResId ) : ImplInit( pParent, nStyle ); ImplLoadRes( rResId ); - SetMaxWidthInChars(0); + SetMinWidthInChars(0); if ( !(nStyle & WB_HIDE ) ) Show(); } diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 962df08168ce..7d2c47630a7a 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -219,7 +219,7 @@ Edit::Edit( Window* pParent, const ResId& rResId ) : Show(); } -void Edit::SetMaxWidthInChars(sal_Int32 nMinWidthInChars) +void Edit::SetMinWidthInChars(sal_Int32 nMinWidthInChars) { if (mnMinWidthInChars != nMinWidthInChars) { @@ -231,7 +231,7 @@ void Edit::SetMaxWidthInChars(sal_Int32 nMinWidthInChars) bool Edit::set_property(const rtl::OString &rKey, const rtl::OString &rValue) { if (rKey == "width-chars") - SetMaxWidthInChars(rValue.toInt32()); + SetMinWidthInChars(rValue.toInt32()); else if (rKey == "editable") SetReadOnly(!toBool(rValue)); else if (rKey == "visibility") |