mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
parent
9b03680ab5
commit
4671214f3d
@ -3159,7 +3159,7 @@ void BufferView::caretPosAndDim(Point & p, Dimension & dim) const
|
||||
} else {
|
||||
Font const font = cur.real_current_font;
|
||||
frontend::FontMetrics const & fm = theFontMetrics(font);
|
||||
dim.wid = fm.lineWidth();
|
||||
dim.wid = max(fm.lineWidth(), 1);
|
||||
dim.asc = fm.maxAscent();
|
||||
dim.des = fm.maxDescent();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user