diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 476a85d44c..be5efd8a87 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2002-06-26 André Pönitz + + * insetgraphics.C: use os::external_path where necesaary according to a + patch from Claus Hentschel) + 2002-06-25 Angus Leeming * insetgraphics.[Ch]: The inset now assumes the responsibility for diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index 5c2f2bbc6c..411389823a 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -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 @@ -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;