work around crash with external inset and latex export

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5514 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-10-25 12:46:01 +00:00
parent 87bfedd291
commit 8e41fc9bd0
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-24 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* insetexternal.C (doSubstitution): change order of substitution
to work around ReplaceEnvironmentPath brokenness
2002-10-24 Rob Lahaye <lahaye@snu.ac.kr>
* insetgraphicsParams.h (scale): is now a float, not an unsigned int.

View File

@ -243,9 +243,9 @@ string const InsetExternal::doSubstitution(Buffer const * buffer,
result = subst(result, "$$Basename", basename);
result = subst(result, "$$Parameters", params_.parameters);
result = subst(result, "$$FPath", filepath);
result = ReplaceEnvironmentPath(result);
result = subst(result, "$$Tempname", tempname_);
result = subst(result, "$$Sysdir", system_lyxdir);
result = ReplaceEnvironmentPath(result);
// Handle the $$Contents(filename) syntax
if (contains(result, "$$Contents(\"")) {