]> git.lyx.org Git - features.git/commitdiff
Revert part of 21965 which was debugging code.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 5 Dec 2007 10:45:19 +0000 (10:45 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 5 Dec 2007 10:45:19 +0000 (10:45 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21966 a592a061-630c-0410-9148-cb99ea01b6c8

src/Converter.cpp

index 136227b219811b50e6f807f263aadd44fc528996..53c1a7b5cdd8601e4ff25496f5e46c30c3ce135f 100644 (file)
@@ -513,6 +513,8 @@ bool Converters::convert(Buffer const * buffer,
 bool Converters::move(string const & fmt,
                      FileName const & from, FileName const & to, bool copy)
 {
+       if (from == to)
+               return true;
 
        bool no_errors = true;
        string const path = onlyPath(from.absFilename());
@@ -521,8 +523,6 @@ bool Converters::move(string const & fmt,
        string const to_extension = getExtension(to.absFilename());
 
        FileNameList const files = FileName(path).dirList(getExtension(from.absFilename()));
-       if (from == to)
-               return true;
        for (FileNameList::const_iterator it = files.begin();
             it != files.end(); ++it) {
                string const from2 = it->absFilename();