X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxtextclass.C;h=71e825483d993d742b959592f9816dc27229d15b;hb=798af7d8f3a34dbad048934819f9da724882d06d;hp=924fae7cc360c3cf760f183dd98c0fd7c8767770;hpb=8e6e970d7ba017dba14bdb821f4c4489665d947c;p=lyx.git diff --git a/src/lyxtextclass.C b/src/lyxtextclass.C index 924fae7cc3..71e825483d 100644 --- a/src/lyxtextclass.C +++ b/src/lyxtextclass.C @@ -822,12 +822,12 @@ void LyXTextClass::readCounter(LyXLex & lexrc) switch (static_cast(le)) { case CT_NAME: lexrc.next(); - name = lyx::from_ascii(lexrc.getString()); + name = from_ascii(lexrc.getString()); break; case CT_WITHIN: lexrc.next(); - within = lyx::from_ascii(lexrc.getString()); - if (within == lyx::from_ascii("none")) + within = from_ascii(lexrc.getString()); + if (within == "none") within.erase(); break; case CT_END: