On Wed, Aug 05, 2020 at 09:50:48AM +0200, Daniel wrote: > I noticed that the caret is differently placed after some characters. For > example, this gives the impression that there is a space between an > emphasized f and the caret, see attached screen capture. Previous versions > of LyX did not show this. I consider this a regression. The selection > highlight (blue rectangle) is also wider.
This occurs only when a single character is inside the note inset and is probably due to a thinko that is fixed by the attached patch. Note that a similar patch is needed in stable after 79998fdc. -- Enrico
diff --git a/src/frontends/qt/GuiFontMetrics.cpp b/src/frontends/qt/GuiFontMetrics.cpp index efd8463453..9ff027eb08 100644 --- a/src/frontends/qt/GuiFontMetrics.cpp +++ b/src/frontends/qt/GuiFontMetrics.cpp @@ -241,7 +241,7 @@ int GuiFontMetrics::width(docstring const & s) const int w = 0; // is the string a single character from a math font ? #if QT_VERSION >= 0x040800 - bool const math_char = s.length() == 1 || font_.styleName() == "LyX"; + bool const math_char = s.length() == 1 && font_.styleName() == "LyX"; #else bool const math_char = s.length() == 1; #endif
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel