vcl/source/edit/texteng.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit c927b6692257e427d622add6324fc1c55fce9aa3 Author: Matteo Casalin <matteo.casa...@yahoo.com> Date: Wed Apr 20 21:42:28 2016 +0200 Resolves: tdf#98940 (-1 not mapping to maximum string length anymore) Change-Id: I58e4a63bce17b880a97c7ccfb4d42dfb930e54c5 Reviewed-on: https://gerrit.libreoffice.org/24268 Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> (cherry picked from commit eca3455190ed9a2c4796e7954f2533dc71cd1ab6) Reviewed-on: https://gerrit.libreoffice.org/24654 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: David Tardon <dtar...@redhat.com> diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 6763664..fec262f 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -218,7 +218,7 @@ void TextEngine::SetFont( const vcl::Font& rFont ) void TextEngine::SetMaxTextLen( sal_Int32 nLen ) { - mnMaxTextLen = nLen; + mnMaxTextLen = nLen>=0 ? nLen : EDIT_NOLIMIT; } void TextEngine::SetMaxTextWidth( long nMaxWidth )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits