second part of Claus' patch

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4487 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-06-26 11:55:40 +00:00
parent 639e179c8b
commit 7e652bb51c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-06-26 André Pönitz <poenitz@gmx.net>
* insetgraphics.C: use os::external_path where necesaary according to a
patch from Claus Hentschel)
2002-06-25 Angus Leeming <leeming@lyx.org>
* insetgraphics.[Ch]: The inset now assumes the responsibility for

View File

@ -103,6 +103,7 @@ TODO Before initial production release:
#include "support/lyxalgo.h" // lyx::count
#include "support/path.h"
#include "support/systemcall.h"
#include "support/os.h"
#include <boost/bind.hpp>
@ -948,7 +949,7 @@ int InsetGraphics::latex(Buffer const *buf, ostream & os,
// and remove the extension so the LaTeX will use whatever is
// appropriate (when there are several versions in different formats)
string const latex_str = message.empty() ?
(before + '{' + prepareFile(buf) + '}' + after) :
(before + '{' + os::external_path(prepareFile(buf)) + '}' + after) :
(before + '{' + params().filename + " not found!}" + after);
os << latex_str;