]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetlatexaccent.C
insetcharstyle drawing cosmetics
[lyx.git] / src / insets / insetlatexaccent.C
index 2929970213e015d30e6ae00a3fcfa4220aa19872..95a3ffc3de8ebb5ad4bb5773c54125aa1aed69eb 100644 (file)
@@ -68,7 +68,7 @@ void InsetLatexAccent::checkContents()
        // REMOVE IN 0.13
        // Dirty Hack for backward compability. remove in 0.13 (Lgb)
        contents = trim(contents);
-       if (!contains(contents, "{") && !contains(contents, "}")) {
+       if (!contains(contents, '{') && !contains(contents, '}')) {
                if (contents.length() == 2) {
                        string tmp;
                        tmp += contents[0];
@@ -433,7 +433,9 @@ void InsetLatexAccent::draw(PainterInfo & pi, int x, int baseline) const
                        // closer to the top of the dot-less 'i' or 'j'.
                        char tmpic = ic; // store the ic when we
                        ic = 'x';        // calculates the ascent of
+#ifdef WITH_WARNINGS
 #warning metrics?
+#endif
                        int asc = ascent(); // the dot-less version (here: 'x')
                        ic = tmpic;      // set the orig ic back
                        y = baseline - asc; // update to new y coord.