From d89317e820d0d5c279e4834c53340c022bf95763 Mon Sep 17 00:00:00 2001 From: poire-z Date: Mon, 16 Dec 2019 18:30:14 +0100 Subject: [PATCH] bump crengine, fribidi, xtext - bump crengine: (Upstream) DocX: fix paragraphs with single hyperlink - bump fribidi to 1.0.8 (for nested isolates fix) - xtext.makeLine(): return no_allowed_break_met=true when that happens, so we know the line breaks inside a word. TextBoxWidget: add forgotten property (when use_xtext=true) when no line break opportunity was found: has_split_inside_word=true. (Only used by CoverBrowser Mosaic mode to make nicer text covers by reducing font size when that happens.) --- base | 2 +- frontend/ui/widget/textboxwidget.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/base b/base index f94e953b3..3813bb1b9 160000 --- a/base +++ b/base @@ -1 +1 @@ -Subproject commit f94e953b32858a02aa2d0a6b780ee28b88717ced +Subproject commit 3813bb1b950abdd75a11b96e237ca9932f3dc1a5 diff --git a/frontend/ui/widget/textboxwidget.lua b/frontend/ui/widget/textboxwidget.lua index 6b7858699..6acd0c6e7 100644 --- a/frontend/ui/widget/textboxwidget.lua +++ b/frontend/ui/widget/textboxwidget.lua @@ -304,6 +304,10 @@ function TextBoxWidget:_splitToLines() -- - Between a line end_offset= and the next line offset=, there may be only -- a single indice not included: the \n or the space that allowed the break. self.vertical_string_list[ln] = line + if line.no_allowed_break_met then + -- let the fact a long word was splitted be known + self.has_split_inside_word = true + end if line.hard_newline_at_eot and not line.next_start_offset then -- Add an empty line to reprensent the \n at end of text -- and allow positionning cursor after it