From b6126838b5b96634bc4a53347f0732af7c690853 Mon Sep 17 00:00:00 2001 From: Angus Leeming Date: Fri, 19 Apr 2002 17:16:00 +0000 Subject: [PATCH] (Herbert): strip the extension from the graphics filename when exporting to latex. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4036 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/ChangeLog | 5 +++++ src/insets/insetgraphics.C | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 0162a84c56..50596136ab 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,8 @@ +2002-04-19 Herbert Voss + + * insetgraphic.C (prepareFile): return filename without + extension if we only export without compiling + 2002-04-19 Juergen Vigna * insettext.C (draw): call a fullRebreak on the row where we had a diff --git a/src/insets/insetgraphics.C b/src/insets/insetgraphics.C index f7848051c9..e6e352ec7e 100644 --- a/src/insets/insetgraphics.C +++ b/src/insets/insetgraphics.C @@ -614,11 +614,14 @@ string const InsetGraphics::prepareFile(Buffer const *buf) const string filename_ = params().filename; bool const zipped = zippedFile(filename_); - if ((zipped && params().noUnzip) || buf->niceFile) { + if (zipped && params().noUnzip) { lyxerr[Debug::GRAPHICS] << "don't unzip file or export latex" << filename_ << endl; return filename_; } + // only export latex without compiling the file + if (buf->niceFile) + return RemoveExtension(filename_); // Enable these helper functions to find the file if it is stored as // a relative path. -- 2.39.2