]> git.lyx.org Git - features.git/commitdiff
* src/support/filetools.cpp (unzippedFileName):
authorJürgen Spitzmüller <spitz@lyx.org>
Tue, 8 Apr 2008 09:28:15 +0000 (09:28 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Tue, 8 Apr 2008 09:28:15 +0000 (09:28 +0000)
- Fix an assertion with compressed image files
   that do not have a zip-extension.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24165 a592a061-630c-0410-9148-cb99ea01b6c8

src/support/filetools.cpp

index e460efcf2f45b2d44e58ecc39e93ec7444e9c759..464abb81cd53f92f5068328dbf64115b3337d67f 100644 (file)
@@ -665,7 +665,7 @@ string const unzippedFileName(string const & zipped_file)
        string const ext = getExtension(zipped_file);
        if (ext == "gz" || ext == "z" || ext == "Z")
                return changeExtension(zipped_file, string());
-       return "unzipped_" + zipped_file;
+       return onlyPath(zipped_file) + "unzipped_" + onlyFilename(zipped_file);
 }