]> 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 25053fe840d9314cbea52b9ec086a72c2f215d4d..1d352cd746943de83949ab7336dc9dc126c25001 100644 (file)
@@ -147,14 +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 FONT_STYLE_DISPLAY:
-               case FONT_STYLE_TEXT:
-               case FONT_STYLE_IGNORE:
-               case FONT_STYLE_INHERIT:
+               case DISPLAY_STYLE:
+               case TEXT_STYLE:
+               case IGNORE_STYLE:
+               case INHERIT_STYLE:
                        spc_code = abs(spc_code);
                        break;
-               case FONT_STYLE_SCRIPT:
-               case FONT_STYLE_SCRIPTSCRIPT:
+               case SCRIPT_STYLE:
+               case SCRIPTSCRIPT_STYLE:
                        spc_code = 0;
                }
        }