X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_decorationinset.C;h=b1a1c4352dd92ee0279309952049023029f8f4fb;hb=4590c8cfab02a3bc56813cfb1f2e80bd1119af9e;hp=b4f1a0673a749b79a1f5cfaa10a54489507607f1;hpb=2be247f6ef5e35f27a41d92a88790357875c66bd;p=lyx.git diff --git a/src/mathed/math_decorationinset.C b/src/mathed/math_decorationinset.C index b4f1a0673a..b1a1c4352d 100644 --- a/src/mathed/math_decorationinset.C +++ b/src/mathed/math_decorationinset.C @@ -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);