diff options
-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 ); |