]> git.lyx.org Git - features.git/commitdiff
Enable convertDefault.sh to run even if its executable bit is not set.
authorAngus Leeming <leeming@lyx.org>
Thu, 28 Aug 2003 12:45:51 +0000 (12:45 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 28 Aug 2003 12:45:51 +0000 (12:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7627 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetgraphics.C

index 0a7cf3e439c62d7b9b1ae152afcaa05379cb3886..5bb9bda925bacbea51111d53c776a213b88e973f 100644 (file)
@@ -1,3 +1,9 @@
+2003-08-28  Angus Leeming  <leeming@lyx.org>
+
+        * insetgraphics.C (prepareFile): prepend "convertDefault.sh" with
+        "sh ", enabling the conversion to be carried out even if the script
+        is not executable.
+
 2003-08-28  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * most files: change to use const Buffer refs
        * insetfootlike.C:
        * insettabular.C: parantheses, localize vars etc.
 
-2003-07-29     Martin Vermeer  <martin.vermeer@hut.fi>
+2003-07-29  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * insetnote.C: Implement a newenvironment in preamble for
-    greyedout. Patch provided by Jürgen Spitzmüller.
+       greyedout. Patch provided by Jürgen Spitzmüller.
 
 2003-07-29  Angus Leeming  <leeming@lyx.org>
 
index 647e9c525a480e9e246d2aed72c144b1c02081b2..59b811390ddeb4c4230b658e5d65e5825d741504 100644 (file)
@@ -441,7 +441,7 @@ string const InsetGraphics::prepareFile(Buffer const & buf,
        // from ImageMagic: convert from:inname.from to:outname.to
        if (!converters.convert(&buf, temp_file, outfile_base, from, to)) {
                string const command =
-                       LibFileSearch("scripts", "convertDefault.sh") +
+                       "sh " + LibFileSearch("scripts", "convertDefault.sh") +
                                ' ' + from + ':' + temp_file + ' ' +
                                to + ':' + outfile_base + '.' + to;
                lyxerr[Debug::GRAPHICS]