]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathClass.cpp
Assure correct spacing of colored items in mathed
[lyx.git] / src / mathed / MathClass.cpp
index f000a3e114b6296bf1b8fdbe186f28efeb4557b5..1d352cd746943de83949ab7336dc9dc126c25001 100644 (file)
@@ -147,12 +147,14 @@ int class_spacing(MathClass const mc1, MathClass const mc2,
        //         << "=" << spc_code << " @" << mb.style << endl;
        if (spc_code < 0) {
                switch (mb.font.style()) {
-               case LM_ST_DISPLAY:
-               case LM_ST_TEXT:
+               case DISPLAY_STYLE:
+               case TEXT_STYLE:
+               case IGNORE_STYLE:
+               case INHERIT_STYLE:
                        spc_code = abs(spc_code);
                        break;
-               case LM_ST_SCRIPT:
-               case LM_ST_SCRIPTSCRIPT:
+               case SCRIPT_STYLE:
+               case SCRIPTSCRIPT_STYLE:
                        spc_code = 0;
                }
        }