Hi Georg, thanks for your code optimizations. But as I wrote in the commit message http://www.lyx.org/trac/changeset/e7c75296d6f13e1bb08b254f3a2fe3c57ccf6bae/lyxgitwe were at the nesting limit for if clauses allowed by MSVC. Now we have too many nested if and therefore I get:
..\..\..\src\tex2lyx\text.cpp(4599): fatal error C1061: compiler limit : blocks nested too deeply [D:\LyXGit\Master\compile-result\src\tex2lyx\tex2lyx.vcxproj]
regards Uwe