namespace lyx {
using support::bformat;
+using support::FileName;
using support::isFileReadable;
+using support::makeAbsPath;
using support::makeDisplayPath;
using support::tempName;
string const filename = owner_->fileName();
// there must be a file to save
- if (!isFileReadable(filename)) {
+ if (!isFileReadable(FileName(makeAbsPath(filename)))) {
Alert::error(_("Document not saved"),
_("You must save the document "
"before it can be registered."));
if (!vcs) {
string const cvs_entries = "CVS/Entries";
- if (isFileReadable(cvs_entries)) {
+ if (isFileReadable(FileName(makeAbsPath(cvs_entries)))) {
lyxerr[Debug::LYXVC]
<< "LyXVC: registering "
<< to_utf8(makeDisplayPath(filename))