[Libreoffice-commits] core.git: vcl/source

Matteo Casalin matteo.casalin at yahoo.com
Tue May 3 09:28:34 UTC 2016


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

New commits:
commit eca3455190ed9a2c4796e7954f2533dc71cd1ab6
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>

diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index af3425b..d24ff15 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