]> git.lyx.org Git - features.git/commitdiff
Fix copy&paste error.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 13 Dec 2007 09:01:35 +0000 (09:01 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 13 Dec 2007 09:01:35 +0000 (09:01 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22120 a592a061-630c-0410-9148-cb99ea01b6c8

src/ConverterCache.cpp

index 41072302cd93952b5544728988f74aef36f21ebe..41785be3eed822faff41d18e281cedde74468481 100644 (file)
@@ -314,11 +314,9 @@ void ConverterCache::add(FileName const & orig_from, string const & to_format,
        } else {
                CacheItem new_item(orig_from, to_format, timestamp,
                                orig_from.checksum());
-               // FIXME: The original code used to chmod the new file to 600.
-               // See SpecialisedMover::do_copy().
                if (mover.copy(converted_file, new_item.cache_name,
                              onlyFilename(new_item.cache_name.absFilename()))) {
-                       if (!changeMode(item->cache_name, 0600)) {
+                       if (!changeMode(new_item.cache_name, 0600)) {
                                LYXERR(Debug::FILES, "Could not change file mode"
                                        << item->cache_name);
                        }