diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-15 13:47:09 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-15 13:49:09 +0100 |
commit | e45136f1ff9d817dfec27a6a20ba29fffc6c54bf (patch) | |
tree | ef23eb7a91edfd9f4de414a7007ea40a8d943fa0 /vcl/source | |
parent | 3d0988b8ca11eb8e80a3eae5f033512fb9bab0ce (diff) |
Resolves: fdo#85032 max len property of -1 -> crash
Change-Id: Ief903c619204f01784e93fd5e2d582632cef032e
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/edit.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index dc345d21b78f..4ca22e3054e7 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2468,7 +2468,7 @@ bool Edit::IsInsertMode() const void Edit::SetMaxTextLen(sal_Int32 nMaxLen) { - mnMaxTextLen = nMaxLen ? nMaxLen : EDIT_NOLIMIT; + mnMaxTextLen = nMaxLen > 0 ? nMaxLen : EDIT_NOLIMIT; if ( mpSubEdit ) mpSubEdit->SetMaxTextLen( mnMaxTextLen ); |