X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ftex2lyx%2Ftext.cpp;h=01626f3a500892313a2afbde6d830c93171e0657;hb=43f6b1672b5ef442b4e9b7e4f7ea76dc14ac4fc8;hp=e397c32fd75ae9d4621431696b7f8af0c3ad0654;hpb=62394258dacddc8d71a52adcecad0d7e8166db66;p=lyx.git diff --git a/src/tex2lyx/text.cpp b/src/tex2lyx/text.cpp index e397c32fd7..01626f3a50 100644 --- a/src/tex2lyx/text.cpp +++ b/src/tex2lyx/text.cpp @@ -4384,7 +4384,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer, /* string s = t.asInput(); string z = p.verbatim_item(); - while (p.good() && z != " " && z.size()) { + while (p.good() && z != " " && !z.empty()) { //cerr << "read: " << z << endl; s += z; z = p.verbatim_item();