mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Make sure that caret width is not null in mathed
The same test exists in texted. Fixes bug #12904.
This commit is contained in:
parent
fa67f70992
commit
9156712895
@ -298,7 +298,7 @@ void MathData::metrics(MetricsInfo & mi, Dimension & dim, bool tight) const
|
||||
// so that we can set the caret vertical dimensions.
|
||||
mrow.caret_dim.asc = min(dim.asc, fm.maxAscent());
|
||||
mrow.caret_dim.des = min(dim.des, fm.maxDescent());
|
||||
mrow.caret_dim.wid = fm.lineWidth();
|
||||
mrow.caret_dim.wid = max(fm.lineWidth(), 1);
|
||||
|
||||
/// do the same for math cells linearized in the row
|
||||
MathRow caret_row = MathRow(mrow.caret_dim);
|
||||
|
Loading…
Reference in New Issue
Block a user