]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathClass.cpp
When selecting math with the mouse, selection happens in the middle (#9748)
[lyx.git] / src / mathed / MathClass.cpp
index a46aad3794d0d6f2ecc7f2a2cf791f1c3cd56c33..f000a3e114b6296bf1b8fdbe186f28efeb4557b5 100644 (file)
@@ -146,7 +146,7 @@ int class_spacing(MathClass const mc1, MathClass const mc2,
        //lyxerr << class_to_string(mc1) << "+" << class_to_string(mc2)
        //         << "=" << spc_code << " @" << mb.style << endl;
        if (spc_code < 0) {
-               switch (mb.style) {
+               switch (mb.font.style()) {
                case LM_ST_DISPLAY:
                case LM_ST_TEXT:
                        spc_code = abs(spc_code);