[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/source

Matteo Casalin matteo.casalin at yahoo.com
Fri May 6 06:57:08 UTC 2016


 vcl/source/edit/texteng.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c927b6692257e427d622add6324fc1c55fce9aa3
Author: Matteo Casalin <matteo.casalin at 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 <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>
    (cherry picked from commit eca3455190ed9a2c4796e7954f2533dc71cd1ab6)
    Reviewed-on: https://gerrit.libreoffice.org/24654
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: David Tardon <dtardon at 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 )


More information about the Libreoffice-commits mailing list