]> git.lyx.org Git - features.git/commit
Fix caret height when inserting new inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 14 Feb 2021 20:34:43 +0000 (21:34 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 14 Feb 2021 20:39:15 +0000 (21:39 +0100)
commit5a58ca6576a1fa2d6bea8e9e7927d5779943e593
tree83b1e635dc25bcb23928c008919b276c48547f97
parent6f163198797ce335149881dcf2a423f93927e857
Fix caret height when inserting new inset

For now, the simplest thing to do it to compute metrics in all cases
before calling setCurrentFont().

In 2.5, a better approach will be to add a new virtual function
InsetText::setFont that will set correctly TextMetrics::font_ (a cache
of the reference font).

Fixes bug #12126.
src/Text3.cpp