mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-25 17:44:59 +00:00
Fixup 4671214f: add comment
This commit is contained in:
parent
a9b0f5faae
commit
0429b580e6
@ -3159,6 +3159,8 @@ void BufferView::caretPosAndDim(Point & p, Dimension & dim) const
|
|||||||
} else {
|
} else {
|
||||||
Font const font = cur.real_current_font;
|
Font const font = cur.real_current_font;
|
||||||
frontend::FontMetrics const & fm = theFontMetrics(font);
|
frontend::FontMetrics const & fm = theFontMetrics(font);
|
||||||
|
// lineWidth() can be 0 to mean 'thin line' on HiDpi, but the
|
||||||
|
// caret drawing code is not prepared for that.
|
||||||
dim.wid = max(fm.lineWidth(), 1);
|
dim.wid = max(fm.lineWidth(), 1);
|
||||||
dim.asc = fm.maxAscent();
|
dim.asc = fm.maxAscent();
|
||||||
dim.des = fm.maxDescent();
|
dim.des = fm.maxDescent();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user