]> git.lyx.org Git - features.git/commit
Fix bug #9146 (Graphics conversion problem).
authorEnrico Forestieri <forenr@lyx.org>
Mon, 4 Aug 2014 16:52:20 +0000 (18:52 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 4 Aug 2014 16:52:20 +0000 (18:52 +0200)
commite2d834e8d07a73c5e4fa49ca3e7aff651e2c0b8a
tree0b02a2dcf27e48f2ca043c40e8db0a9eb257a8f2
parenta8b7e0a18b38d67594836cb7295b6e2e21aa9c15
Fix bug #9146 (Graphics conversion problem).

If LyX does not know about a given file format, it may easily
happen that the format is recognized as "latex" and this causes
bug #9146. This patch limits the check for a latex format to
non-binary files. The strategy for deciding that a file has
binary content is the same as that adopted by the "less" program.
This is a stripped down backport of the more complex fix in master.
src/Format.cpp
src/support/lstrings.cpp
src/support/lstrings.h
status.21x