commit 3895c7987931a6400afef785202b659e5fcde7eb
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue May 23 09:20:52 2023 +0200

    Fixup 1d637b8a: do not set extra spacing for typewriter
    
    This messed up rows with both normal and typewriter fonts.
---
 src/Row.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Row.cpp b/src/Row.cpp
index 769d3e3..c39d63b 100644
--- a/src/Row.cpp
+++ b/src/Row.cpp
@@ -61,7 +61,7 @@ int Row::Element::expansionAmount() const
 
 void Row::Element::setExtra(double extra_per_em)
 {
-       if (type != STRING)
+       if (type != STRING || font.fontInfo().family() == TYPEWRITER_FAMILY)
                return;
        extra = extra_per_em * theFontMetrics(font).em();
 }
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to