mangle spaces in graphics filenames

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@10102 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-06-24 14:21:33 +00:00
parent b8b076de65
commit 0f36c0f3ff
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-06-24 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetgraphics.C (prepareFile): replace spaces in filenames with _
2005-06-18 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* insetgraphics.C (prepareFile): Don't strip the extension, because

View File

@ -623,6 +623,8 @@ string const InsetGraphics::prepareFile(Buffer const * buf) const
// without ext and /
temp_file = subst(
ChangeExtension(orig_file_with_path, string()), "/", "_");
// Replace ' ' in the file name with '_'
temp_file = subst(temp_file, " ", "_");
// without dots and again with ext
temp_file = ChangeExtension(
subst(temp_file, ".", "_"), ext_tmp);