to latex.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4036
a592a061-630c-0410-9148-
cb99ea01b6c8
+2002-04-19 Herbert Voss <voss@perce.de>
+
+ * insetgraphic.C (prepareFile): return filename without
+ extension if we only export without compiling
+
2002-04-19 Juergen Vigna <jug@sad.it>
* insettext.C (draw): call a fullRebreak on the row where we had a
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.