diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-26 14:05:57 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-26 14:05:57 +0000 |
commit | 040217f20956a46e563bf664b8fa21ef9be237c5 (patch) | |
tree | 8e1237477bb6ca63a4e1353d32cbf5d04b7db488 /svtools | |
parent | INTEGRATION: CWS fwk72 (1.3.76); FILE MERGED (diff) | |
download | core-040217f20956a46e563bf664b8fa21ef9be237c5.tar.gz core-040217f20956a46e563bf664b8fa21ef9be237c5.zip |
INTEGRATION: CWS vcl83 (1.56.32); FILE MERGED
2007/10/17 13:10:30 pl 1.56.32.1: #i82494# respect 0 max text len meaning unlimited
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/textview.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx index 77d45712010d..947b15ebd4e0 100644 --- a/svtools/source/edit/textview.cxx +++ b/svtools/source/edit/textview.cxx @@ -4,9 +4,9 @@ * * $RCSfile: textview.cxx,v $ * - * $Revision: 1.56 $ + * $Revision: 1.57 $ * - * last change: $Author: hr $ $Date: 2007-09-26 15:03:03 $ + * last change: $Author: ihi $ $Date: 2007-11-26 15:05:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1957,6 +1957,8 @@ bool TextView::ImplTruncateNewText( rtl::OUString& rNewText ) const } ULONG nMaxLen = mpImpl->mpTextEngine->GetMaxTextLen(); + if( nMaxLen == 0 ) // 0 means unlimited + nMaxLen = 65534; // limit to string api ULONG nCurLen = mpImpl->mpTextEngine->GetTextLen(); sal_uInt32 nNewLen = rNewText.getLength(); |