From 9a7ad1efed7319df8ea0123c88a93d3ec2539304 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 5 Dec 2007 10:45:19 +0000 Subject: [PATCH] Revert part of 21965 which was debugging code. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21966 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Converter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Converter.cpp b/src/Converter.cpp index 136227b219..53c1a7b5cd 100644 --- a/src/Converter.cpp +++ b/src/Converter.cpp @@ -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(); -- 2.39.2