mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 05:55:34 +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.
(cherry picked from commit 875b1def4f
)
This commit is contained in:
parent
326eab3408
commit
20c8959790
@ -490,7 +490,7 @@ bool TextMetrics::redoParagraph(pit_type const pit)
|
|||||||
first = row.endpos();
|
first = row.endpos();
|
||||||
++row_index;
|
++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();
|
pm.dim().des += row.height();
|
||||||
} while (first < par.size() || need_new_row);
|
} while (first < par.size() || need_new_row);
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ What's new
|
|||||||
|
|
||||||
- Fix width of collapsible insets with sublabels (bug 12046).
|
- Fix width of collapsible insets with sublabels (bug 12046).
|
||||||
|
|
||||||
|
- Fix Hebrew characters overflow in insets (bug 12030).
|
||||||
|
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user