vcl/source/text/textlayout.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
New commits: commit 755ce3ae9f6c672cc3ac1596fce182cd2c6993db Author: Chris Sherlock <chris.sherloc...@gmail.com> AuthorDate: Thu Oct 26 02:07:02 2023 +1100 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Tue Dec 12 10:48:39 2023 +0100 vcl: remove out of sync comment - the code has since changed! Change-Id: I4354d64671db697be4e4ea7c907bb13fa421e0df Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158462 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/vcl/source/text/textlayout.cxx b/vcl/source/text/textlayout.cxx index 535e0c1c16f1..095c087d5377 100644 --- a/vcl/source/text/textlayout.cxx +++ b/vcl/source/text/textlayout.cxx @@ -245,10 +245,7 @@ namespace vcl return nBreakPos; // Whether hyphen or not: Put the word after the hyphen through - // word boundary. - - // nMaxBreakPos the last char that fits into the line - // nBreakPos is the word's start + // the word boundary. // We run into a problem if the doc is so narrow, that a word // is broken into more than two lines ... @@ -264,8 +261,6 @@ namespace vcl if ( ( nWordEnd < nSoftBreak ) || ( nWordLen <= 3 ) ) return nBreakPos; - // #104415# May happen, because getLineBreak may differ from getWordBoundary with DICTIONARY_WORD - // SAL_WARN_IF( nWordEnd < nMaxBreakPos, "vcl", "Hyph: Break?" ); OUString aWord = rStr.copy( nWordStart, nWordLen ); sal_Int32 nMinTrail = nWordEnd-nSoftBreak+1; //+1: Before the "broken off" char css::uno::Reference< css::linguistic2::XHyphenatedWord > xHyphWord;