vcl/source/control/edit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a16d55f9b0207dadf96c41a1581a649e67a921ad Author: Caolán McNamara <caol...@redhat.com> Date: Wed Oct 15 13:47:09 2014 +0100 Resolves: fdo#85032 max len property of -1 -> crash Change-Id: Ief903c619204f01784e93fd5e2d582632cef032e (cherry picked from commit e45136f1ff9d817dfec27a6a20ba29fffc6c54bf) Reviewed-on: https://gerrit.libreoffice.org/11987 Reviewed-by: Matthew Francis <mjay.fran...@gmail.com> Tested-by: Matthew Francis <mjay.fran...@gmail.com> Reviewed-by: Joren De Cuyper <jore...@libreoffice.org> Reviewed-by: Michael Stahl <mst...@redhat.com> diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index f117e3f..906355f 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2437,7 +2437,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 );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits