diff options
author | Eike Rathke <erack@redhat.com> | 2022-01-21 19:47:25 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2022-01-21 22:40:34 +0100 |
commit | e27a41a362bf25e12487b36f625985b35fb891e3 (patch) | |
tree | 6cb2023106ba2a3e327233fc7e34e8c078cdc0a8 | |
parent | bfa688fa260a1c70dc73b782988c4efb11c3e1bf (diff) |
Remove MAXCHARSINPARA truncation in ImpEditEngine::ReadText()
The called ImpInsertText() already handles that gracefully without
truncation. See also related tdf#139974.
Change-Id: I0ecef7ac0b2b8db5962d19c767cbc23e91cb3cfb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128744
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index 98805cfc522a..3012504bb028 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -115,10 +115,6 @@ EditPaM ImpEditEngine::ReadText( SvStream& rInput, EditSelection aSel ) bool bDone = rInput.ReadByteStringLine( aTmpStr, rInput.GetStreamCharSet() ); while ( bDone ) { - if (aTmpStr.getLength() > MAXCHARSINPARA) - { - aTmpStr = aTmpStr.copy(0, MAXCHARSINPARA); - } aPaM = ImpInsertText( EditSelection( aPaM, aPaM ), aTmpStr ); aPaM = ImpInsertParaBreak( aPaM ); bDone = rInput.ReadByteStringLine( aTmpStr, rInput.GetStreamCharSet() ); |