mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Take right margin into account for text inset width
This is particularly important for contents in RtL languages, where the right margin may contain the paragraph indentation, or itemize/enumeration symbols. Fixes bug #12030.
This commit is contained in:
parent
5ddd82bcea
commit
875b1def4f
@ -550,7 +550,7 @@ bool TextMetrics::redoParagraph(pit_type const pit, bool const align_rows)
|
||||
first = row.endpos();
|
||||
++row_index;
|
||||
|
||||
pm.dim().wid = max(pm.dim().wid, row.width());
|
||||
pm.dim().wid = max(pm.dim().wid, row.width() + row.right_margin);
|
||||
pm.dim().des += row.height();
|
||||
} while (first < par.size() || need_new_row);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user