mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
*sigh*
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21408 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
64b276b6fc
commit
437693005c
@ -850,7 +850,7 @@ bool Buffer::save() const
|
||||
bool madeBackup = false;
|
||||
|
||||
// make a backup if the file already exists
|
||||
if (lyxrc.make_backup && fs::exists(encodedFilename)) {
|
||||
if (lyxrc.make_backup && fileName().exists()) {
|
||||
backupName = FileName(absFileName() + '~');
|
||||
if (!lyxrc.backupdir_path.empty()) {
|
||||
string const mangledName =
|
||||
@ -872,7 +872,7 @@ bool Buffer::save() const
|
||||
}
|
||||
|
||||
// ask if the disk file has been externally modified (use checksum method)
|
||||
if (fs::exists(encodedFilename) && isExternallyModified(checksum_method)) {
|
||||
if (fileName().exists() && isExternallyModified(checksum_method)) {
|
||||
docstring const file = makeDisplayPath(absFileName(), 20);
|
||||
docstring text = bformat(_("Document %1$s has been externally modified. Are you sure "
|
||||
"you want to overwrite this file?"), file);
|
||||
|
@ -48,8 +48,6 @@
|
||||
#include "support/Translator.h"
|
||||
#include "support/lstrings.h"
|
||||
|
||||
#include <boost/array.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
|
||||
@ -288,8 +286,8 @@ public:
|
||||
|
||||
AuthorList authorlist;
|
||||
BranchList branchlist;
|
||||
boost::array<Bullet, 4> temp_bullets;
|
||||
boost::array<Bullet, 4> user_defined_bullets;
|
||||
Bullet temp_bullets[4];
|
||||
Bullet user_defined_bullets[4];
|
||||
Spacing spacing;
|
||||
/** This is the amount of space used for paragraph_separation "skip",
|
||||
* and for detached paragraphs in "indented" documents.
|
||||
|
Loading…
Reference in New Issue
Block a user