]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Liason.C
fix starting up which binary is really a symlink; make sure insetinclude file browser...
[lyx.git] / src / frontends / Liason.C
index f4d0082dfb0b43587b54544022484c19e0a58111..f1fe2c8dcbdf303a2a48b2b8175ea43f83579ba5 100644 (file)
@@ -106,8 +106,8 @@ bool printBuffer(Buffer * buffer, PrinterParams const & pp)
                return false;
 
        // Push directory path.
-       string path = OnlyPath(buffer->fileName());
-       if (lyxrc.use_tempdir || (IsDirWriteable(path) < 1)) {
+       string path = buffer->filePath();
+       if (lyxrc.use_tempdir || !IsDirWriteable(path)) {
                path = buffer->tmppath;
        }
        Path p(path);