Kaydet (Commit) e45136f1 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#85032 max len property of -1 -> crash

Change-Id: Ief903c619204f01784e93fd5e2d582632cef032e
üst 3d0988b8
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment