]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_decorationinset.C
update libtool
[lyx.git] / src / mathed / math_decorationinset.C
index b4f1a0673a749b79a1f5cfaa10a54489507607f1..b1a1c4352dd92ee0279309952049023029f8f4fb 100644 (file)
@@ -9,6 +9,8 @@
 #include "mathed/support.h"
 #include "math_parser.h"
 #include "support/LOstream.h"
+#include "support/lstrings.h"
+
 
 using std::ostream;
 
@@ -67,10 +69,10 @@ void MathDecorationInset::Write(ostream & os, bool fragile)
 {
        latexkeys const * l = lm_get_key_by_id(deco_, LM_TK_WIDE);
        if (fragile &&
-           (strcmp(l->name, "overbrace") == 0 ||
-            strcmp(l->name, "underbrace") == 0 ||
-            strcmp(l->name, "overleftarrow") == 0 ||
-            strcmp(l->name, "overrightarrow") == 0))
+           (compare(l->name, "overbrace") == 0 ||
+            compare(l->name, "underbrace") == 0 ||
+            compare(l->name, "overleftarrow") == 0 ||
+            compare(l->name, "overrightarrow") == 0))
                os << "\\protect";
        os << '\\' << l->name << '{';
        MathParInset::Write(os, fragile);