]> git.lyx.org Git - lyx.git/blobdiff - src/Text.cpp
When we use InPremable styles, we want to write as many versions
[lyx.git] / src / Text.cpp
index 187e3872312f2ff66f3edb5705906c85703f5cfe..29ff6cfe57cca0f81ef4b0a17b786c43e31bd085 100644 (file)
@@ -1050,7 +1050,7 @@ void Text::insertChar(Cursor & cur, char_type c)
 
        pos_type pos = cur.pos();
        if (!cur.paragraph().isPassThru() && owner_->lyxCode() != IPA_CODE &&
-           cur.current_font.fontInfo().family() != TYPEWRITER_FAMILY &&
+           cur.real_current_font.fontInfo().family() != TYPEWRITER_FAMILY &&
            c == '-' && pos > 0) {
                if (par.getChar(pos - 1) == '-') {
                        // convert "--" to endash