]> git.lyx.org Git - features.git/commit
Fix bug #8220: tex2lyx crashes on single-character commands
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 25 Jun 2012 09:04:56 +0000 (11:04 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 25 Jun 2012 09:04:56 +0000 (11:04 +0200)
commit2a13b02a94fdcbb6a4a700801a5ea10e737f4655
treeac77064d8bcde415ae687bd95c8dc51a3025ec43
parent9466967f0ec15e7b71dbe7d8ec274eccafe015a6
Fix bug #8220: tex2lyx crashes on single-character commands

Fix commit [aa9fed93/lyxgit]: it is never a good idea to call substr(4) on a string without checking its length. Moreover, it is even better in this case to check that the first letters are "text" as the reminder of the code assumes...
src/tex2lyx/text.cpp