]> git.lyx.org Git - features.git/commit
Use font metrics for computing the size of math decorations
authorEnrico Forestieri <forenr@lyx.org>
Sat, 3 Apr 2021 16:37:10 +0000 (18:37 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sat, 3 Apr 2021 16:37:10 +0000 (18:37 +0200)
commit7a6ad48495b920797da20fdc685152f3d744c2dd
treee5245974929e80d93a3fe871e9ba8c3643eb467d
parent9d1031771e4a30548d89efa49580e3d8b6dae119
Use font metrics for computing the size of math decorations

It was an error using an absolute size instead of one relative to the
size of the used font. It was requiring using the physical dpi of the
screen and caused #12222. Now everything is computed with respect to
the metrics of the font and should be automatically correct.

Fixes #12222.
src/frontends/qt/GuiApplication.cpp
src/mathed/InsetMathDecoration.cpp